# 重构邮件：测试 rake 任务输出

**URL:** <https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286>\
**Category:** Development\
**Created:** [2025年十月31日 15:54 UTC](https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286 "2025-10-31T15:54:44Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [2025年十二月11日 20:34 UTC](https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286/12 "2025-12-11T20:34:56Z")

</div>

> [@josy38](#):
>
> 与 `force_tls` 一起阻止了邮件发送

是 `force_tls` 阻止了邮件发送——它在连接时强制使用 TLS，可能只适用于端口 465。

> [@J5lx](#):
>
> 但现在我必须明确地将 `DISCOURSE_SMTP_ENABLE_START_TLS` 设置为 `false` 才能使邮件投递工作

真是个独角兽！

您使用的是哪些 SMTP 参数（不包括用户名/密码）？

---

_[View the full topic](https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286)._
