# Can't send email

**URL:** <https://forum.mattermost.com/t/cant-send-email/9702>\
**Category:** Troubleshooting\
**Created:** [May 7, 2020, 8:39am UTC](https://forum.mattermost.com/t/cant-send-email/9702 "2020-05-07T08:39:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [May 7, 2020, 10:14pm UTC](https://forum.mattermost.com/t/cant-send-email/9702/2 "2020-05-07T22:14:08Z")

</div>

Hello, @maki

Based on the error that we are seeing in `mattermost.log`, the server is complaining about unencrypted connection:

> [@maki](#):
>
> Connection unsuccessful: SendMail: Failed to authenticate on SMTP server, unencrypted connection

Can you please confirm which SMTP setting you are using based on the [sample](https://docs.mattermost.com/install/smtp-email-setup.html#sample-smtp-settings) configuration we shared in the documentation?

We will then cross check it with the right SMTP connection security (None / TLS / STARTTLS), port, and SMTP server before we dig deeper into the respective error.

For additional context, I am also troubleshooting another issue here related to the **first record does not look like a TLS handshake** error:

- [TLS Connection Error SendMail tls: first record does not look like a TLS handshake](https://forum.mattermost.com/t/tls-connection-error-sendmail-tls-first-record-does-not-look-like-a-tls-handshake/7283)

---

_[View the full topic](https://forum.mattermost.com/t/cant-send-email/9702)._
