jenkins配置邮件发送宝宝,把我整废了!
问题遇到的现象和发生背景
jenkins配置任务发送至邮箱
我在配置环节,测试邮件是没有问题的
但是结合项目去跑的时候,邮件就会报错
DEBUG SMTP: MessagingException while sending, THROW:
com.sun.mail.smtp.SMTPSendFailedException: 553 authentication is required,163 smtp11,D8CowABnpIHF83Vjzgm_AA--.10062S2 1668674501
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 553 authentication is required,163 smtp11,D8CowABnpIHF83Vjzgm_AA--.10062S2 1668674501
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:524)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:444)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:354)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:189)
at hudson.model.Run.execute(Run.java:1947)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:107)
at hudson.model.Executor.run(Executor.java:449)
Caused by: com.sun.mail.smtp.SMTPSenderFailedException: 553 authentication is required,163 smtp11,D8CowABnpIHF83Vjzgm_AA--.10062S2 1668674501
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1817)
... 12 more
Not sent to the following valid addresses: 496064721@qq.com
SMTPSendFailedException message: 553 authentication is required,163 smtp11,D8CowABnpIHF83Vjzgm_AA--.10062S2 1668674501
Next SMTPSenderFailedException message: 553 authentication is required,163 smtp11,D8CowABnpIHF83Vjzgm_AA--.10062S2 1668674501
请大神教一些~