SendMail.SetUseSSL
------------------

Set the SSL setting.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SendMail](component_SendMail.md) | [15.1](newinversion151.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "SendMail.SetUseSSL"; EmailID; Value ) 

**MBS**( **"SendMail.SetUseSSL";** /\* Set the SSL setting. \*/  
**$EmailID**; /\* The email reference number obtained using [SendMail.CreateEmail](SendMailCreateEmail.md) function. \*/   
**$Value**) /\* The new setting.  
Pass 1 to enable TLS and 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EmailID | The email reference number obtained using [SendMail.CreateEmail](SendMailCreateEmail.md) function. | $EmailID |
| Value | The new setting.   Pass 1 to enable TLS and 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Set the SSL setting.  
### Examples

Enable SSL:

 Set Variable \[$r ; Value: MBS ( "SendMail.SetUseSSL"; $email ; 1)\]  
### See also

- [SendMail.CreateEmail](SendMailCreateEmail.md)
- [SendMail.GetUseSSL](SendMailGetUseSSL.md)

### Release notes

- **Version 15.1**
    - Added [SendMail.GetUseSSL](https://www.mbsplugins.eu/SendMailGetUseSSL.shtml) and [SendMail.SetUseSSL](https://www.mbsplugins.eu/SendMailSetUseSSL.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 15.1 News](https://www.mbsplugins.de/archive/2025-03-19/MBS_FileMaker_Plugin_151_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.1pr5](https://www.mbsplugins.de/archive/2025-02-24/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 19th February 2025 , last changed 8th March 2025

  
[SendMail.SetUse8BitMime](SendMailSetUse8BitMime.md) - [SendMail.Sign](SendMailSign.md)

[HTML Version](SendMailSetUseSSL.shtml)