> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/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);
```


## Related topics

- [NSCustomerServiceAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSCustomerServiceAgent.md)
- [SuperOffice.WebApi.Data.SmtpTestResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.SmtpTestResult.md)
- [Test Smtp Server](/en/api/reference/restful/agent/customerservice_agent/test-smtp-server.md)
- [SuperOffice.WebApi.Agents.ICustomerServiceAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ICustomerServiceAgent.md)
- [SuperOffice.WebApi.Agents.CustomerServiceAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.CustomerServiceAgent.md)
- [SuperOffice.WebApi.Data.CustomerService TestSmtpServerRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.CustomerService_TestSmtpServerRequest.md)
