Class NSSmtpTestResult

Carrier containing information about the result of a SMTP test.

Constructors

NSSmtpTestResult()

Initializes a new instance of the NSSmtpTestResult class.

Declaration

NSSmtpTestResult

Methods

GetErrorMessage()

Declaration

String GetErrorMessage()

Examples

NSSmtpTestResult thing;
String errorMessage = thing.GetErrorMessage();

Returns

Type Description
String If an error occurred, this member will contain a description of the error.

GetSuccess()

Declaration

Bool GetSuccess()

Examples

NSSmtpTestResult thing;
Bool success = thing.GetSuccess();

Returns

Type Description
Bool True if the test went ok. False if it failed. See the error message for details.

SetErrorMessage(String)

Declaration

Void SetErrorMessage(String errorMessage)

Examples

NSSmtpTestResult thing;
String errorMessage;
thing.SetErrorMessage(errorMessage);

Parameters

Type Name Description
String errorMessage If an error occurred, this member will contain a description of the error.

Returns

Type Description
Void

SetSuccess(Bool)

Declaration

Void SetSuccess(Bool success)

Examples

NSSmtpTestResult thing;
Bool success;
thing.SetSuccess(success);

Parameters

Type Name Description
Bool success True if the test went ok. False if it failed. See the error message for details.

Returns

Type Description
Void