Home NT Commands
NT Syntax

MAPISEND (Back Office/Exchange Resource kit)

Send email from the command line.

syntax
      MAPISEND -u "<profile>" -p <password>
         -r <recipient> -s "<subject>" -m <text message> [options]


      MAPISEND -u "<profile>" -p <password>
         -r <recipient> -s "<subject>" -t <text_file> [options]

options
      -i  interactive login (prompts for profile and password)
      -c  cc: list
      -f  File Attachment - path and file name(s)
      -v  generates verbose output (an 8 line summary of the message)

"profile" is the profile name (user mailbox) of sender
"subject" is the subject line 
"recipient" is one or more recipient(s) 
If more than one recipient - separate with ';' these must not be ambiguous in default address book

Mapisend requires MAPI - i.e the MS Outlook client needs to be installed.
A solution that avoids the need to install MS Outlook is to use SMTP e.g. BLAT or Postie

Examples

mapisend -u "MS Exchange Settings" -p MyPassword -r billg@sun.com -s "Subject" -m "Test message text"

mapisend -u "MS Exchange Settings" -p MyPassword -r billg@hp.com -s "Subject" -t c:\MyMail.txt >> c:\mail.log

"The new electronic interdependence re-creates the world in the image of a global village" - Marshall McLuhan

Related Commands:


Q290499 - programmatic access to Outlook email

The command
START mailto:billg@sun.com
Will send email but requires the user to complete and send the message.

Equivalent Linux BASH commands:

sendmail



Simon Sheppard
SS64.com