This example demonstrates how to retrieve an email message header from a POP3 server and
save the messages contents on a hard drive. Headers contain information about an
email message which can be useful for message parsing and processing.
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 (header.zip < 1 KB)
The downloadable example is a zip file that contains one file:
header.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.
NOTE: The parameter -receive
is required whenever using the POP3 parameters.
Execute the batch file by double-clicking it in "My Computer".
An email message header from your POP3 mail server
should be downloaded and the message header should be saved to your hard drive
with the filename "header[message number].txt".