Sendmail.exe
This tool (located in the installation directory) is used for sending email messages via command line. It can be used in a batch file.
Syntax Examples
- sendmail.exe < messagefile.imap
It reads the headers from the file and then sends it to the proper recipient(s)
- sendmail.exe sender@domain1.com recipient@domain2.com
Interactive mode you can compose a message. The mail FROM: header will read sender@domain1.com, the RCPT TO: one will read berecipient@domain2.com.
- sendmail.exe -F fullname -f sender@domain1.com recipient@domain2.com < message_file
Message file have to be placed in the same directory as sendmail.exe.
The tool has following switches:
-F full name sets the full name of the sender
-f name sets the name of the 'from' person (mail From:)
-i ignore dots alone on lines (in Interactive mode - it doesn't end the input by "." on a line by itself)
-t read message for recipients
E. g.: sendmail.exe -F Flavio -f avisos@pingu.company.com.br angela@company.com.br < teste.tmp
A message included in the teste.tmp file is sent to angela@company.com.br with sender's full name of Flavio and the mail From: header of avisos@pingu.company.com.br.