# \[fixed\] Can not send the email

**URL:** <https://meta.discourse.org/t/fixed-can-not-send-the-email/44190>\
**Category:** Self-hosting\
**Created:** [2016 年5 月 13 日 09:38 UTC](https://meta.discourse.org/t/fixed-can-not-send-the-email/44190 "2016-05-13T09:38:38Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
发布日期： [2016 年5 月 16 日 11:05 UTC](https://meta.discourse.org/t/fixed-can-not-send-the-email/44190/12 "2016-05-16T11:05:14Z")

</div>

OK! I checked into this and it seems TLS can be used on, well, _any_ port really…

[https://www.fastmail.com/help/technical/ssltlsstarttls.html](https://www.fastmail.com/help/technical/ssltlsstarttls.html)

I went ahead and made the port selectable in the `./discourse-setup` script, with a value of 587 as the default that gets written to the `app.yml` file. That way we are no longer relying on implicit defaults, the `app.yml` will have the actual SMTP port specified.

(For the record, I’ve used the default – that is, leaving that line commented out – with mailgun and mandrill for ages and never had issues. But I think it’s best to be explicit here.)

---

_[View the full topic](https://meta.discourse.org/t/fixed-can-not-send-the-email/44190)._
