SendEmailError Class
Represents an error that the SendEmailResult object may contain.
Sending an email by using Apex requires domain-level and user-level email verification. System-generated emails also require verification of the From email address. Email delivery fails if any of these verifications is incomplete. See Requirements to Send Email from Salesforce.
The following are methods for SendEmailError. All are instance methods.
-
A list of one or more field names. Identifies which fields in the object, if any, affected the error condition.
-
The text of the error message.
-
Returns a code that characterizes the error.
-
The ID of the target record for which the error occurred.
A list of one or more field names. Identifies which fields in the object, if any, affected the error condition.
public String[] getFields()
Type: String[]
The text of the error message.
public String getMessage()
Type: String
Returns a code that characterizes the error.
public System.StatusCode getStatusCode()
Type: System.StatusCode
The full list of status codes is available in the WSDL file for your organization. For more information about accessing the WSDL file for your organization, see Downloading Salesforce WSDLs and Client Authentication Certificates in the Salesforce online help.
The ID of the target record for which the error occurred.
public String getTargetObjectId()
Type: String