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

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - SQL Reference » System Objects » System procedures » Introduction to 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
12 Attachment not found
13 Disk full
14 Failure
15 Insufficient memory
16 Invalid session
17 Text too large
18 Too many files
19 Too many recipients
20 Unknown recipient
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.
421 domain service not available, closing transmission channel.
450 Requested mail action not taken: mailbox unavailable.
451 Requested action not taken: local error in processing.
452 Requested action not taken: insufficient system storage.
500 Syntax error, command unrecognized. (This may include errors such as a command that is too long).
501 Syntax error in parameters or arguments.
502 Command not implemented.
503 Bad sequence of commands.
504 Command parameter not implemented.
550 Requested action not taken: mailbox unavailable. For example, the mailbox is not found, there is no access, or no relay is allowed.
551 User not local; please try forward-path
552 Request mail action aborted: exceeded storage allocation.
553 Requested action not taken: mailbox name not allowed. For example, the mailbox syntax is incorrect.
554 Transaction failed.