# SSL options for 'Zend\\Mail\\Transport\\Smtp' in Zend Framework 2

**URL:** <https://discourse.laminas.dev/t/ssl-options-for-zend-mail-transport-smtp-in-zend-framework-2/2290>\
**Category:** Components & MVC\
**Tags:** zend-mail\
**Created:** [May 7, 2021, 6:24pm UTC](https://discourse.laminas.dev/t/ssl-options-for-zend-mail-transport-smtp-in-zend-framework-2/2290 "2021-05-07T18:24:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KamilSzmit](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/kamilszmit/32/985_2.png) [@KamilSzmit](https://discourse.laminas.dev/u/KamilSzmit)\
**Post date:** [May 7, 2021, 6:24pm UTC](https://discourse.laminas.dev/t/ssl-options-for-zend-mail-transport-smtp-in-zend-framework-2/2290/1 "2021-05-07T18:24:42Z")

</div>

Is it possible to set these SSL options:

```
    'allow_self_signed' => true,
    'verify_peer' => false,
    'verify_peer_name' => false

```

for ‘Zend\Mail\Transport\Smtp’ in Zend Framework 2 app? If it is possible, please let me know how to do it. I am trying to send emails on my local MS IIS server via TLS and I get the error ‘Unable to connect via TLS’. I use PHP 5.6.
