Return Codes
Previous Topic  

Purpose

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 

19

Success with warnings - not fully implemented.

20

Database query failed

21

POP3 "STAT" command (statistics) failed

22

POP3 "RECV" command (receive email) failed.

23

Retrieving of message header failed

24

Deletion of message failed

25

POP3 Server connection failed.

26

Email message forward failed.

27

Auto-reply email failed.

28

-loadurl feature failed to load the specified URL

29

File move failed using watch directory features

30

-findmailserver failed