MailBee.NET Objects 3.1

MailMessage.LastResult Property

Gets the code of the last occurred error.

public int LastResult {get;}

Property Value

An integer value containing a numeric code of the last error, or the OK value if no errors occurred. The default value is OK.

Remarks

This property always contains the code of last occurred error (even if ThrowExceptions property is set to true).

Example

The example is available in ThrowExceptions topic.

See Also

MailMessage Class | MailBee.Mime Namespace | ErrorCodes | ThrowExceptions