Purpose
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 test@exclamationsoft.com another@exclamationsoft.com -from test@exclamationsoft.com -logfile "c:\tmp\log.txt" -server localhost -subject "Plain Text Message" -body "This is a plain text message sent with NetMailBot"
Steps
NOTE: If you use the same recipient email address twice in this example, e.g. "test@testcompany.com", the
address will be listed twice in the "To:" field of the email received by the recipient. That is, the email header will
look like:
From: test@mymail.com
Date: Thursday, July 01, 2004 2:52 PM
To: test@testcompany.com; test@testcompany.com
Subject: Plain Text Message
However, the recipient will only get one email. Such is the nature of SMTP!