Jenkins配置邮件报错问题解决
1、Test e-mail recipient:com.sun.mail.smtp.SMTPSenderFailedException: 553 Mail from must equal authorized userat com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1587)Caused: com.sun.mai
·
1、Test e-mail recipient:
com.sun.mail.smtp.SMTPSenderFailedException: 553 Mail from must equal authorized user
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1587)
Caused: com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 553 Mail from must equal authorized user
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
at javax.mail.Transport.send0(Transport.java:195)
at javax.mail.Transport.send(Transport.java:124)
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:581)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
....
2、错误原因
由于在做邮件发送时,登录用户和发信人必须一致;而在测试时我登录用户的邮箱是163邮箱,发信人邮箱是QQ邮箱,导致报错
3、解决办法
保证登录人邮箱跟发信人邮箱一致,要么都用163邮箱,要么都用QQ邮箱
4、修改管理员邮箱账号:
更多推荐
已为社区贡献2条内容
所有评论(0)