我想通过与一个电子邮件地址相对的一台服务器从多个电子邮件地址发送电子邮件test@test1.com
,例如。但是当我这样做时,我得到以下错误:sample@sample2.com
smtp
raise SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials
我的 SMTP 设置是:
export CR_AUTH_MAIL_SERVER=smtp.gmail.com
export CR_AUTH_MAIL_PORT=587
export CR_AUTH_MAIL_USERNAME=testing@stackoverflowQuestion.com
export CR_AUTH_MAIL_PASSWORD=sampleForQuestion
如果我使用 以外的电子邮件地址testing@stackoverflowQuestion.com
,则会出现错误。
我可以使用一个电子邮件地址从多个有效电子邮件地址发送电子邮件吗?我总是收到来自testing@stackoverflowQuestion.com
.