Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加成员邮箱,无法收到邮件 #383

Open
jingzl opened this issue Dec 3, 2024 · 1 comment
Open

添加成员邮箱,无法收到邮件 #383

jingzl opened this issue Dec 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jingzl
Copy link

jingzl commented Dec 3, 2024

版本:0.12.1
问题:在设置中添加成员,输入邮箱地址后,无法收到邮件。

环境:
通过docker 进行安装,参考说明在 .env 中进行了 email的配置

MAIL_TYPE=resend

MAIL_DEFAULT_SEND_FROM=no reply
RESEND_API_KEY=re_C25VbtUK_xxxxxxxxxxxxxxxxxxx

SMTP_SERVER=smtp.qq.com
SMTP_PORT=465
SMTP_USERNAME=[email protected]
SMTP_PASSWORD=xxxxxxxxxxxxxxx
SMTP_USE_TLS=true
SMTP_OPPORTUNISTIC_TLS=false

无论选择 resend 还是 smtp,均无法收到邮件。

Copy link

dosubot bot commented Dec 3, 2024

确保在 .env 文件中配置的 MAIL_DEFAULT_SEND_FROM 字段是一个有效的电子邮件地址格式,例如 [email protected]。当前配置中的 no reply 可能导致邮件无法发送 [1]

此外,检查 RESEND_API_KEY 是否正确,并确保 SMTP 配置(如服务器地址、端口、用户名和密码)是准确的。如果使用 smtp,请确认 SMTP_USE_TLSSMTP_OPPORTUNISTIC_TLS 的设置符合邮件服务器的要求。

完成这些检查后,重启服务以应用更改:

docker compose down
docker compose up -d

如果问题仍然存在,建议检查邮件服务的日志以获取更多信息 [2]

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant