mSentOK

Displays the status of the sent message.

Values

This parameter can take one of the following values:

  • true. Indicates that the message is sent successfully.
  • false (read-only). Indicates that message sending has failed and shows the corresponding error.
Examples

Copy
if(!MailObj.mSentOK) 
    {
        // If an error occurs, then show the corresponding error message.
        CRM.AddContent('ERROR: ' + MailObj.mErrorMessage);
    }
    
else 
    {
        CRM.AddContent('Message was sent successfully.');
    }

Response.Write(CRM.GetPage());
Copy
with (MailObj) 
    {
        if(!mSentOK) 
            { 
                // If an error occurs, then show the corresponding error message.
                CRM.AddContent('ERROR: ' + mErrorMessage);
            } 
        
        else {CRM.AddContent('Message was sent successfully.');
    }

The examples above display "Message was sent successfully" if the message was sent successfully. Otherwise, they display the corresponding error message.