> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# NSSmtpTestResult

> Carrier containing information about the result of a SMTP test.

Carrier containing information about the result of a SMTP test.

## Constructors

### NSSmtpTestResult()

```crmscript theme={null}
NSSmtpTestResult
```

Initializes a new instance of the NSSmtpTestResult class.

## Methods

## GetErrorMessage()

```crmscript theme={null}
String GetErrorMessage()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - If an error occurred, this member will contain a description of the error.

**Example:**

```crmscript theme={null}
NSSmtpTestResult thing;
String errorMessage = thing.GetErrorMessage();
```

## GetSuccess()

```crmscript theme={null}
Bool GetSuccess()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - True if the test went ok. False if it failed. See the error message for details.

**Example:**

```crmscript theme={null}
NSSmtpTestResult thing;
Bool success = thing.GetSuccess();
```

## SetErrorMessage(String)

```crmscript theme={null}
Void SetErrorMessage(String errorMessage)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSmtpTestResult thing;
String errorMessage;
thing.SetErrorMessage(errorMessage);
```

## SetSuccess(Bool)

```crmscript theme={null}
Void SetSuccess(Bool success)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSmtpTestResult thing;
Bool success;
thing.SetSuccess(success);
```
