# \[SMTPS\] Unable to send email with port 465 STARTTLS option

**URL:** <https://community.dreamfactory.com/t/smtps-unable-to-send-email-with-port-465-starttls-option/5169>\
**Category:** uncategorized\
**Created:** [May 5, 2020, 3:53am UTC](https://community.dreamfactory.com/t/smtps-unable-to-send-email-with-port-465-starttls-option/5169 "2020-05-05T03:53:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![foomx](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/foomx/32/1317_2.png) [@foomx](https://community.dreamfactory.com/u/foomx)\
**Post date:** [May 5, 2020, 3:53am UTC](https://community.dreamfactory.com/t/smtps-unable-to-send-email-with-port-465-starttls-option/5169/1 "2020-05-05T03:53:32Z")

</div>

Hi everyone,

Seeking for some advice on SMTPS settings in dreamfactory, I’m having some issue implementing SSL into mail server settings with dreamfactory

# Environment

- Dreamfactory 2.12.0 running on docker container
- HmailServer running as proxy to external aws mail server.

# SMTP Service running as below settings:

![image](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/2X/b/b671a571aab4f2fba3cc5bafe6349b939aa3464e.png)  
Error from postman:

1. Set encrpytion as empty  
`Failed to authenticate on SMTP server with username &quot;noreply@ ****.com&quot;using 1 possible authenticators`
2. Set encryption as tls  
`stream_socket_enable_crypto(): SSL: Success`
3. Set encryption as ssl  
`Connection could not be established with host 172. **.***.**`
4. Set encryption as tls/ssl  
`Connection could not be established with host 172. **.***.** [php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution`

other application calling to the same hmail server had no problem sending out email, and only dreamfactory have this problem with SMTPS. I have also tested with non SSL hmail are working prefectly.

# Hmail settings

- STARTTLS (required) with ssl

---

<div class="post-metadata">

**Author:** ![abhishek.pandey](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@abhishek.pandey](https://community.dreamfactory.com/u/abhishek.pandey)\
**Post date:** [May 11, 2020, 8:07pm UTC](https://community.dreamfactory.com/t/smtps-unable-to-send-email-with-port-465-starttls-option/5169/2 "2020-05-11T20:07:35Z")

</div>

Hello @foomx.

I recommend starting here- [https://wiki.dreamfactory.com/DreamFactory/Tutorials/Sending\_Email#Provisioning\_an\_Email\_Service](https://wiki.dreamfactory.com/DreamFactory/Tutorials/Sending_Email#Provisioning_an_Email_Service). Also as a reference, have a look here as well - [https://docs.bitnami.com/bch/apps/dreamfactory/configuration/configure-smtp/](https://docs.bitnami.com/bch/apps/dreamfactory/configuration/configure-smtp/)

DreamFactory has released a new and improved version which I encourage you to try. Here is the link - [https://bitnami.com/stack/dreamfactory](https://bitnami.com/stack/dreamfactory)

Let us know if this helps.  
Thanks
