Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: MS DOS .: How to Send email from the command line MAPISEND (Back Office/Exchange Resource kit)

How to Send email from the command line 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 the default address book.

Mapisend requires MAPI - i.e the MS Outlook client needs to be installed.

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

How helpful was this article to you?

Related Articles

article VB Script to Send Email
  Dim SendMail Set SendMail =...

(No rating)  3-24-2008    Views: 149   
article How to use command line parameters with the Ntbackup command in Windows Server 2003
SUMMARY You can perform backup...

(No rating)  5-22-2008    Views: 197   
article How to change the Primary Email Address in Exchange 2007
Sometimes you need to assign more then one...

(No rating)  4-1-2008    Views: 188   

User Comments

Add Comment
No comments have been posted.