Return Codes

As of build 1798, NetMailBot returns a number after each time it is executed. This is useful if you integrate NetMailBot with another program, and you need to determine if an email was sent.

After executing NetMailBot, you can display the return code by typing at the command line:

		
		echo %errorlevel%
		
The following table maps each return code:

Return Code Description
0 Success - Email was sent successfully or email address verification complete.
1 Success - Help was requested. Can also signify that an incorrect parameter was used or was missing.
2 Failed to initialize MFC. The required MFC dlls are missing, corrupt, or your system is low on memory.
3 Failed. General failure occurred before sending email. Check the log file for detailed information.
4 Failed. Feature is not available.
5 Failed. Alternate body text specified with -altbodyfile paramter is empty or missing.
6 Failed. Body text specified with -bodyfile paramter is empty or missing.
7 Failed. Attachment file specified with -attachment paramter is empty or missing.
8 Failed. Attachment list file specified with -attachmentlist paramter is empty or missing.
9 Failed. To list file specified with -tolist paramter is empty or missing.
10 Failed. CC list file specified with -cclist paramter is empty or missing.
11 Failed. BCC list file specified with -bcclist paramter is empty or missing.
12 Failed. Email address verification failed. Check the log file.
13 Failed. Sending email failed. Check the log file.
14 Failed. Program Initialization failed. Check the log file.
15 Verification of one email address - GOOD
16 Verification of one email address - BAD.
17 Verification of one email address - SUSPECT.
18 Verification of one email address - FAILED. Check the log file for an error