Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 » SQL Anywhere Server - SQL Reference » System procedures » MAPI and SMTP procedures

 

Return codes for MAPI and SMTP system procedures

The following codes may be returned by either the MAPI or the SMTP system procedures:

Return code Meaning
0 Success
2 xp_startmail or xp_startsmtp failed
3 xp_stopmail or xp_stopsmtp failed
5 xp_sendmail failed
12 Attachment not found
15 Insufficient memory
20 Unknown recipient
25 Mail session failed to start

In addition, the following codes may be returned by the MAPI system procedures:

Return code Meaning
11 Ambiguous recipient
13 Disk full
14 Failure
16 Invalid session
17 Text too large
18 Too many files
19 Too many recipients
21 Login failure
22 Too many sessions
23 User abort
24 No MAPI

In addition, the following codes may be returned by the SMTP system procedures:

Return code Meaning
100 Socket error.
101 Socket timeout.
102 Unable to resolve the SMTP server hostname.
103 Unable to connect to the SMTP server.
104

Server error; response not understood. For example, the message is poorly formatted, or the server is not SMTP.

This error is also returned if you specify the smtp_auth_username and smtp_auth_password to xp_startsmtp, and the server does not support the SMTP authentication capability.

105 A TLS error occurred