# 安装后无法使sendgrid邮件正常工作

**URL:** <https://meta.discourse.org/t/cant-get-sendgird-email-to-work-after-installation/239808>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2022年九月22日 21:03 UTC](https://meta.discourse.org/t/cant-get-sendgird-email-to-work-after-installation/239808 "2022-09-22T21:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asugar](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@asugar](https://meta.discourse.org/u/asugar)\
**Post date:** [2022年九月22日 21:03 UTC](https://meta.discourse.org/t/cant-get-sendgird-email-to-work-after-installation/239808/1 "2022-09-22T21:03:56Z")

</div>

花了整整两天时间尝试让 SendGrid 在新安装的系统上运行，但仍不清楚为什么电子邮件无法正常工作。

**设置**  
主机名 : [mydomain.com](http://mydomain.com)  
电子邮件 : [mydomaind@gmail.com](mailto:mydomaind@gmail.com)  
SMTP 地址 : [smtp.sendgrid.net](http://smtp.sendgrid.net)  
SMTP 端口 : 587  
SMTP 用户名 : apikey  
SMTP 密码 : Ssfdsfdsfds  
通知电子邮件 : [mydomaind@gmail.com](mailto:mydomaind@gmail.com)  
Maxmind 许可证: (未设置)

我已将其托管在 DigitalOcean 上。

我已按照 Sendgrid 的说明进行了测试 [How to send an Email with SMTP | SendGrid Docs | Twilio](https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp)

没有收到任何电子邮件，我无法弄清楚哪里出了问题。

是的，我已在 Sendgrid 上将服务器的 IP 地址列入了白名单。  
我已检查收件人的垃圾邮件/广告邮件文件夹。

如何调试？有什么帮助吗？

---

<div class="post-metadata">

**Author:** ![asugar](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@asugar](https://meta.discourse.org/u/asugar)\
**Post date:** [2022年九月22日 21:10 UTC](https://meta.discourse.org/t/cant-get-sendgird-email-to-work-after-installation/239808/2 "2022-09-22T21:10:07Z")

</div>

算了，不知怎么的，我设法解决了。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2022年十月22日 21:10 UTC](https://meta.discourse.org/t/cant-get-sendgird-email-to-work-after-installation/239808/3 "2022-10-22T21:10:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
