# 将SMTP连接到Discourse

**URL:** <https://meta.discourse.org/t/connect-smtp-to-discourse/314771>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2024年七月3日 09:33 UTC](https://meta.discourse.org/t/connect-smtp-to-discourse/314771 "2024-07-03T09:33:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)\
**Post date:** [2024年七月3日 16:05 UTC](https://meta.discourse.org/t/connect-smtp-to-discourse/314771/2 "2024-07-03T16:05:50Z")

</div>

SMTP 端口通常是 587，您可能正确地认为密码周围的引号是问题所在，请将其删除。

如果您还没有检查过，这里有一个故障排除指南：

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326):
>
> You just installed Discourse via [the install guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md), but email doesn’t seem to work. Unfortunately this means you can’t log in as an admin to finalize the install. cry Let’s troubleshootize! Try the doctor woman_health_workerIf you run ./discourse-doctor it will check several ways that your mail configuration might be broken, and offer advice. Try that first. Did you enter email settings correctly? The simplest way is to run ./discourse-setup again. Did you enter everything correctly? B…

（适用于标准安装）

---

_[View the full topic](https://meta.discourse.org/t/connect-smtp-to-discourse/314771)._
