-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG]通过wordpress使用smtp发邮件时报错 #219
Comments
可以看下 worker 后台的日志么 |
看了下 worker好像不记录历史日志 然后我部署wp的那台机子今天被我玩崩了 得等老师去那边开机 开机了我一定第一时间试一下 |
下面是worker的日志(把ip删了) 此外 还有一个问题 就是wordpress走这里的smtp好像会乱码 而走正常的邮箱smtp不会 下面是同一封邮件走本项目smtp和QQ邮箱smtp发出的内容对比 |
我修复下,代码有些问题,邮件乱码看起来是变成 Unicode 了,我测试下 |
临时加了下 decode 不同 charset 的代码,可以再测试下 |
换了新的server.py但是 依旧发出的还是乱码 \r\n\t\t \r\n\t\r\n\r\n'}\r\n\t\t\t \r\n\t\r\n\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\r\n\t\t\r\n\t\t\t\t\t \r\n\t\t\t\t\t\u60a8\u597d\uff01 \r\n\t\t\t\t\u8fd9\u662f\u4e00\u5c01\u6765\u81ea\u667a\u6167\u6559\u5e08[https://test.gpus.top]\u7684\u6d4b\u8bd5\u90ae\u4ef6 \u8be5\u90ae\u4ef6\u7531\u7f51\u7ad9\u540e\u53f0\u53d1\u51fa\uff0c\u5982\u679c\u975e\u60a8\u672c\u4eba\u64cd\u4f5c\uff0c\u8bf7\u5ffd\u7565\u6b64\u90ae\u4ef6 2024-05-11 16:17:19\r\n\t\t\t\t\t 2024-05-11 04:17:22,037 - main - ERROR - Failed to send mail code=[500] text=[Internal Server Error] |
看起来是编码问题,我复现下看看怎么修复 |
更新了main分支的代码,我测试没问题了,麻烦测试下 |
好的 谢谢 我今晚试试 |
可以了! 谢谢大佬!!!!!!!!! |
复现步骤
wp mail smtp插件进行发件测试 smtp服务端收到请求 但报错2024-05-09 08:27:14,128 - main - ERROR - Failed to send mail code=[500] text=[Internal Server Error],不过实际上发送成功,且tempmail站里有记录
预期行为
应无报错
部署方式
浏览器环境
edge 124.0.2478.80 (正式版本) (64 位)
The text was updated successfully, but these errors were encountered: