# Post-install, Curl can send email, but Discourse cannot. Help to fix?

**URL:** <https://meta.discourse.org/t/post-install-curl-can-send-email-but-discourse-cannot-help-to-fix/159900>\
**Category:** Self-hosting\
**Created:** [5 augustus 2020 om 11:17 UTC](https://meta.discourse.org/t/post-install-curl-can-send-email-but-discourse-cannot-help-to-fix/159900 "2020-08-05T11:17:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![onar3d](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/onar3d/32/189173_2.png) [@onar3d](https://meta.discourse.org/u/onar3d)\
**Post date:** [5 augustus 2020 om 11:17 UTC](https://meta.discourse.org/t/post-install-curl-can-send-email-but-discourse-cannot-help-to-fix/159900/1 "2020-08-05T11:17:41Z")

</div>

Hi!

In the below text replace \<DOT\> with . - as I am a new user discourse doesn’t let me post links.

I installed Discourse on a newly created Hetzner cloud computer, the URL to it resolves well: `forum<DOT>thewizardofosc<DOT>com`

However, the email I registered with is never sent. In the log file, Discourse’s log message is Net::ReadTimeout if that says anything.

telnet connects - typing `"telnet mail<DOT>thewizardofosc<DOT>com 465"` results in `"Connected to thewizardofosc<DOT>com".`

Also Curl successfully sends an email!

Typing the below:  
`curl --ssl smtps://mail<DOT>thewizardofosc<DOT>com --mail-from discourse@thewizardofosc<DOT>com --mail-rcpt <VARIOUS WORKED> --upload-file email.txt --user 'discourse@thewizardofosc<DOT>com:<PASSWORD>'`

Sends successfully.

But why then does Discourse not?

Below are what I suppose are the relevant sections out of my app file:

```
## on initial signup example 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: 'iliasb@thewizardofosc<DOT>com'

## TODO: The SMTP mail server used to validate new accounts and send notifications
# SMTP ADDRESS, username, and password are required
# WARNING the char '#' in SMTP password can cause problems!
DISCOURSE_SMTP_ADDRESS: mail<DOT>thewizardofosc<DOT>com
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: discourse@thewizardofosc<DOT>com
DISCOURSE_SMTP_PASSWORD: <PASSWORD>
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)

## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
LETSENCRYPT_ACCOUNT_EMAIL: me@example<DOT>com

```

---

_[View the full topic](https://meta.discourse.org/t/post-install-curl-can-send-email-but-discourse-cannot-help-to-fix/159900)._
