项目中编写邮件发送代码时候报440 mail from account doesn't conform with authentication 这个错误。
我项目的框架是spring mvc 所以邮件也是基于spring mvc的,这个错误主要是配置文件出问题。
[email] email.host=smtp.bitbao.net #为email.user [email protected] email.port=25 email.message=test #必须与mail.frommail相同 [email protected] email.passwd=111
user和from mail用户必须是相同的。