Run as Windows Service and Auto-Reply

This example demonstrates how to use the email auto-reply features of NetMailBot while running NetMailBot as a Windows Service.

Specifically, a POP3 user account is monitored for new messages. When new messages are found, they are replied to. After the email is replied to, the original email messages in the POP3 user account are deleted.

  • Requirements
    • The user account you specify should have at least one email message on the server, in order for this example to work. An email can be sent to the account you specify with a different example, click here.
    • Windows NT/2000/XP/2003 only.
    • Adminstrator privelege to install and run a Windows Service.

  • Example Download
    A working example can be downloaded, so that you can follow along with the example:
     Click Here ( 24KB)
    The downloadable example is a zip file that contains 4 files:
    • NMBService.exe - The NetMailBot helper program for running NetMailBot as a Windows Service
    • NMBService.ini
    • NMBService.log
    • NMBStart Service.bat
    • NMBStop Service.bat
    • NMBService Install.bat
    • NMBService UNInstall.bat

    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 file NMBService.ini, changing the following:
      • Ensure the path to the NetMailBot is correct. By default, it is C:\Program Files\NetMailBot
      • -popuser to your own user account.
      • -poppassword to the user account's password.
      • -popserver to the user account's POP3 mail server.
      • -to to an email address where the message can be forwarded.
      • -from to an email address that can be used as the from email address.
      • -server to an SMTP mail server to send the email through.
    2. Execute the batch file "NMBService Install.bat" to install the Windows Service helper program.
    3. Ensure that the service and NetMailBot are running: Open Task Manager, select the "Processes" tab, and look for the two processes "netmailbot.exe" and "NMBService.exe".
    4. Check your email account Inbox for email replied to from the user account you have specified.
    5. To uninstall the service, execute the batch file "NMBService UNInstall.bat"