Class NSSmtpTestResult
Carrier containing information about the result of a SMTP test.
Syntax
Constructors
NSSmtpTestResult()
Initializes a new instance of the NSSmtpTestResult class.
Declaration
NSSmtpTestResult
Methods
GetErrorMessage()
Carrier containing information about the result of a SMTP test.
Declaration
String GetErrorMessage()
Returns
Type | Description |
---|---|
String | If an error occurred, this member will contain a description of the error. |
Examples
NSSmtpTestResult thing;
String errorMessage = thing.GetErrorMessage();
GetSuccess()
Carrier containing information about the result of a SMTP test.
Declaration
Bool GetSuccess()
Returns
Type | Description |
---|---|
Bool | True if the test went ok. False if it failed. See the error message for details. |
Examples
NSSmtpTestResult thing;
Bool success = thing.GetSuccess();
SetErrorMessage(String)
Carrier containing information about the result of a SMTP test.
Declaration
Void SetErrorMessage(String errorMessage)
Parameters
Type | Name | Description |
---|---|---|
String | errorMessage | If an error occurred, this member will contain a description of the error. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSmtpTestResult thing;
String errorMessage;
thing.SetErrorMessage(errorMessage);
SetSuccess(Bool)
Carrier containing information about the result of a SMTP test.
Declaration
Void SetSuccess(Bool 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 |
Examples
NSSmtpTestResult thing;
Bool success;
thing.SetSuccess(success);