This example demonstrates how to send a single email to more than one recipient.
Prepared Example Files
The archive contains one file:
Batch File Contents
This is the content of the batch file:
netmailbot.exe -to firstname.lastname@example.org email@example.com -from firstname.lastname@example.org -logfile "c:\tmp\log.txt" -server localhost -subject "Plain Text Message" -body "This is a plain text message sent with NetMailBot"
NOTE: If you use the same recipient email address twice in this example, e.g. "email@example.com", the
address will be listed twice in the "To:" field of the email received by the recipient. That is, the email header will
Date: Thursday, July 01, 2004 2:52 PM
To: firstname.lastname@example.org; email@example.com
Subject: Plain Text Message
However, the recipient will only get one email. Such is the nature of SMTP!