# 123-reg 和 discourse 在托管的虚拟专用服务器上无法正常工作 - 所有其他方面似乎都正常

**URL:** <https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2022年八月31日 19:33 UTC](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744 "2022-08-31T19:33:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2022年八月31日 21:07 UTC](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744/6 "2022-08-31T21:07:05Z")

</div>

> [@bc2018cb](#):
>
> undefined method `to\_sym’ for true:TrueClass  
> Did you mean? to\_s

~~这听起来可能是一个bug，尽管邮件发送代码中出现bug似乎不太可能。~~

请查看[新 Discourse 安装的邮件故障排除](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326)以获取其他尝试方法。（例如，如何在不运行 `discourse-doctor` 的情况下进行测试）。

啊。在这里。“YES”不是 `smtp_validation` 的有效值：

`必须是 plain, login, 或 cram_md5.`

它位于 `app/services/email_settings_validator.rb` 中，如果您想在 github 上找到它。

---

_[View the full topic](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744)._
