Auto-Reply to an Email
Previous Topic  Next Topic 

Purpose

 

This example demonstrates how to configure an auto-reply to an incoming email. This feature is useful for monitoring a POP3 email account for new email messages that you wish to auto-reply to. 

 

Additional Prerequisites

 

The user account you specify should have at least one email message on the POP server in order for this example to work. If you need to do so, an email can be sent to the account you specify by using one of our other examples; click here.

 

Prepared Example Files

 

 

The archive contains one file:

 

 

Batch File Contents

 

This is the content of the batch file:

 

NetMailBot.exe -receive -popreply 1 -popserver mail.domain.com -popuser email@domain.com -poppassword secret -body "Thank you for your interest!" -from email@domain.com -server mail.domain.com

 

@echo %ERRORLEVEL%

pause

 

Steps

 

  1. Unzip the AutoReply.zip file. This will produce a directory called "AutoReply". Open this directory.
  2. Open Notepad and edit the batch file "AutoReply.bat". Change the values of the following parameters:

 

NOTE: The parameter -receive is required whenever using the POP3 parameters; this parameter puts NetMailBot into what might be called "POP3 mode" as opposed to "SMTP mode" which is for sending mails.

 

NOTE: Recall that your SMTP server may require authentication; see this example for more information.

 

  1. Invoke the batch file by double-clicking the icon or straight from the command line.
  2. An email message from your POP3 mail server should be downloaded and the message parts should be saved to your hard drive in a folder named "pop" under your System Temporary Directory.
  3. After the email message is downloaded, a reply will be sent.