# 与其他网站的讨论，SMTP问题：到达文件结尾

**URL:** <https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893>\
**Category:** Self-hosting\
**Created:** [2020 年9 月 3 日 08:10 UTC](https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893 "2020-09-03T08:10:31Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
发布日期： [2020 年9 月 22 日 15:58 UTC](https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893/8 "2020-09-22T15:58:53Z")

</div>

> [@salazarp](#):
>
> 端口 465

啊，它正被重新用作基于 TLS 的提交，这很合理。

> [@salazarp](#):
>
> 有没有办法在使用端口 465 连接时强制启用 TLS？

目前还不行。看起来当你在 `smtp_settings` 中设置 `:ssl = true` 时，[ActionMailer 支持该功能](https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration)，但我们目前没有启用该功能的代码路径。

我们相信，如果有人提交一个添加该支持的 PR，我们会非常欢迎。

---

_[View the full topic](https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893)._
