M (MailSend) Errors


 

When an error occurs during the execution of the MAILSEND instruction, any error data is stored in the S$ERROR$ or the variable specified by the *ERROR keyword. The error information is stored using one of the following formats:

     Mnn Subcode: sss
or
     Mnn Subcode: sss OsError: ooo
 

Where:

Mnn

This field specifies the operand in the MAILSEND instruction that is related to error being reported. The 'nn' value identifies the operands/options as follows:

 

Code

Description

M01

*ATTACHMENT option

M02

*BCC option

M03

*CC option

M04

*ERROR option

M05

*PASSWORD option

M06

*PORT option

M07

*TIMEOUT option

M08

*USER option

M09

reserved

M10

reserved

M11

reserved

M12

*TRACE option

M13

*TYPE option

M14

*TRACEAPPEND option

M15

*DSNRECEIPT option

M16

*MDNRECEIPT option

M17

*RETURN option

M18

*REPLYTO option

M19

*SUNDM option

M20

*OPENSSL option

M21

*ERRORLIST option

M22

*STARTTLS option

M80

{outgoing} operand

M81

{sendto} operand

M82

{sendfrom} operand

M83

{subject} operand

M84

{message} operand

M94

Error sending the SMTP Date field.

M95

Error sending end of attachment

M96

Error sending end of message

M97

Time out waiting for server after end of message

M98

Server rejected message

M99

OpenSSL Error

 

sss
The field value specifies a subcode that qualifies the error that has occurred. The following subcode values can be given.

 

Code

Description

31

Insufficient memory!

32

Unable to create TRACE file!

33

Did not receive ready message from the e-mail server during the logon process.

34

Invalid e-mail server response for a QUIT action.

35

Invalid e-mail server response when OK response expected.

36

Invalid e-mail server response for an OPEN command to start a connection.

37

Invalid e-mail server response from server after sending the e-mail message data header.

38

The e-mail server rejected the {sendfrom} e-mail address.

39

The e-mail server AUTH login is not available when using the *USER/*PASSWORD settings.

40

Invalid e-mail server response to a AUTH LOGIN command.

41

The *USER name has been rejected.

42

The e-mail server did not send a PASSWORD response while processing the *PASSWORD option.

43

The mail logon authentication has failed. An authentication failure can occur when either the *USER or the *PASSWORD option is invalid.

44

Recipient e-mail address.

45

The filename format for the ATTACHMENT or TRACE files is invalid.

46

Error while reading attachment file.

47

Null variable not allowed for a MAILSEND parameter.

50

Email Server 220 Ready not received after 'STARTTLS' command.

60

Error accessing library used for socket support. For the Windows OS this means that an error has occurred while accessing the WS2_32.DLL or the WSOCK32.DLL.

61

Unable to resolve the {outgoing} e-mail server URL/IP address.

62

Unable to create a socket when connecting to the {outgoing} e-mail server.

63

Unable to connect a socket during the logon process to access the {outgoing} e-mail server.

64

Unable to load the OpenSSL libraries.

65

Unable to create a SSL connection using the OpenSSL libraries.

70

Error occurred while sending a message to the {outgoing} e-mail server.

80

Error occurred while receiving a message from the {outgoing} e-mail server.

81

Timeout occurred while waiting to receive a message from the {outgoing} e-mail server.

82

Socket error occurred during a receive operation.

83

Lost connection while waiting for a socket receive operation.

84

Receive select error has occurred while waiting to receive a message.

85

Unexpected error during receive operation.

86

The DSN receipts are not supported by the email server.

87

EMSTP support is required at the email server before the DSNRECEIPT can be used.

88

Unable to open attachment.

89

Unable to logon to a Data Manager.

90

Invalid Data Manager response to the MAILSEND execution.

91

MAILSEND instruction timed out while waiting for instruction execution a Data Manager. The maximum timeout is 180 seconds.

92

The Data Manager does not support the MAILSEND instruction.

93

The <e> or <f> parameter substitution failed.

94

Error sending the SMTP date field.

 

ooo
The 'ooo' value is an OS specific error code. Under Linux, this code is an appropriate errno value. Under Windows, this code is a Windows error code.

 

 

See Also: PL/B Errors

 



Compiler and Runtime Options I (I/O) Errors O (Object) Errors