LeslieLeung / heimdallr

一个非常轻量的通知网关,可以聚合各种推送渠道,使用 Serverless 部署,几乎零成本运行。
https://heimdallr.zeabur.app/docs
GNU General Public License v3.0
468 stars 42 forks source link

smtp发送通知报错 #39

Closed hausen1012 closed 3 months ago

hausen1012 commented 3 months ago

Describe the bug A clear and concise description of what the bug is. 使用最新版docker镜像,smtp发送通知报错 To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image

Runtime (please complete the following information):

Additional context Add any other context about the problem here.

LeslieLeung commented 3 months ago

@hausen1012 如果可以,尝试一下 dev 分支里的代码,应该修复了这个问题。在我这边自测发邮件是ok了。

hausen1012 commented 3 months ago

好的感谢,等我有时间尝试一下

hausen1012 commented 3 months ago

谢谢大佬开源,辛苦了

hausen1012 commented 3 months ago

最新版docker镜像还是有同样的问题

LeslieLeung commented 3 months ago

确认能够复现问题,通常是 SMTP 配置有问题导致,已知如果 SMTP 域名出错会导致。

LeslieLeung commented 3 months ago

增加了一个异常捕获,如果是域名填错了,会有以下的提示:

ERROR:heimdallr.channel.email:Email send failed: [Errno 8] nodename nor servname provided, or not known

当然还请检查一下你的配置是否有误,以及更新配置后需要重启一下容器。@hausen1012

hausen1012 commented 3 months ago

我看了一下,不是域名错误,似乎是一定需要 587端口才行,465不行,我用的qq的smtp。