Delete an Email

This example demonstrates how to delete an email on a POP3 email server.

** WARNING ** This example will delete an email for the specified user account on the specified POP3 email server. You should use a test account for this example to ensure that critical data is not accidentally 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.

  • Example Download
    A working example can be downloaded, so that you can follow along with the example:
     Click Here (delete.zip < 1 KB)
    The downloadable example is a zip file that contains one file:
    • delete.bat - The batch file that will instruct NetMailBot to perform the desired actions.

    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.

  • Key parameter(s) used

  • Steps
    1. Open Notepad and edit the batch file delete.bat. Change the values of the parameters: -poppassword, and -popserver to your own user account, password, and POP3 mail server.
    2. NOTE: The parameter -receive is required whenever using the POP3 parameters.
    3. Execute the batch file by double-clicking it in "My Computer".
    4. NetMailBot should display that the message was deleted.