Simple Test Send with Logging
Previous Topic  Next Topic 

Purpose

 

This example demonstrates how to send a single email while logging the results.

 

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 -from test@exclamationsoft.com -logfile "c:\tmp\log.txt" -server localhost

 

This is (with the exception of the logfile) the simplest invocation of NetMailBot possible - the email sent will have no subject nor any actual message body. The results of the invocation will be logged to a logfile in the path specified.

 

Steps

 

  1. Unzip the SimpleSendWithLogging.zip file. This will produce a directory called "SimpleSendWithLogging". Open this directory.
  2. Open Notepad and edit the batch file "SimpleSendWithLogging.bat". Change the values of the parameters -to, -from, and -server to your own email address and your mail server. 
  3. Invoke the batch file by double-clicking the icon or straight from the command line. 
  4. NetMailbot should start up and, upon finishing, the email address specified with the -to parameter should receive a single email.