Salesforce

MailLastRC (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

MailLastRC (Magic xpa 4.x)

Lets the developer retrieve the last error that occurred using any other mail function.

Syntax:

MailLastRC()

Parameters:

No parameters are required.

Returns:

Numeric. The function returns the number that represents the last mail-related error code.

For Java Mail Framework, the return value = -1 depicts error and the return value = 0 depicts success.

For Legacy framework, the return value <0 depicts error and the return value = 0 depicts success. Since version: 4.6.1

Note:

You can use the MailError function to resolve the error code to a readable error message.

This function is a server-side function.

See also:

Mail functions

The Online and Rich Client Samples projects (program EL01 and REL01)

Reference
Attachment 
Attachment