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 email@example.com firstname.lastname@example.org -from email@example.com -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. "firstname.lastname@example.org", 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: email@example.com; firstname.lastname@example.org
Subject: Plain Text Message
However, the recipient will only get one email. Such is the nature of SMTP!