大家是不是忘了将用户和密码进行base64编码,smtp是需要base64编码的,否则在传输过程会出错误
比如像这样
username = base64.b64encode(fromaddress.encode()).decode()
本文强调了在SMTP协议中使用Base64编码用户名和密码的必要性,避免在传输过程中出现错误。通过示例代码展示如何进行正确的Base64编码。
大家是不是忘了将用户和密码进行base64编码,smtp是需要base64编码的,否则在传输过程会出错误
比如像这样
username = base64.b64encode(fromaddress.encode()).decode()
5040
1889