Simple Message

This example demonstrates how to send an single email. Try this example if you are new to NetMailBot or if you are not familiar with batch file programming.
  • Requirements
    • None.

  • Example Download
    A working example can be downloaded, so that you can follow along with the example:
     Click Here (simple.zip 283 bytes)
    The downloadable example is a zip file that contains one file:
    • send_email.bat - The batch file that will instruct NetMailBot to send the email message.

    Instructions for Download and Installation

    • Download the example zip file and save it to your hard drive
    • Create a directory on your C drive named "tmp"
    • Unzip all of the files in the example zip file into the newly created directory c:\tmp.

  • Steps
    1. Open Notepad and edit the batch file send_email.bat. Change the values of the parameters -to, -from, and -server to your own email address and your mail server.
    2. Execute the batch file by double-clicking it in "My Computer".
    3. The email address specified with the -to parameter should receive a single email.