[英]Jenkins: Not able to send email
I am using Jenkins 2.89.3 and setup Jenkins Editable Email Notification with triggers as Always.我正在使用 Jenkins 2.89.3 并始终使用触发器设置 Jenkins 可编辑电子邮件通知。
Build run successfully but getting error in email sending.构建运行成功,但在发送电子邮件时出错。 Console output is as:控制台输出如下:
Email was triggered for: Always
Sending email for trigger: Always
Sending email to: himanshu.jn48@gmail.com
Connection error sending email, retrying once more in 10 seconds...
Connection error sending email, retrying once more in 10 seconds...
Failed after second try sending email
Finished: SUCCESS
I have received the email when I test the configuration by sending test e-mail.我在通过发送测试电子邮件测试配置时收到了电子邮件。
I am attaching screenshot of SMTP Configuration.我附上了 SMTP 配置的屏幕截图。 link for image图片链接
Based on your plugin setup, there may be more than one configuration for SMTP available in Jenkins.根据您的插件设置,Jenkins 中可能有不止一种可用的 SMTP 配置。 Make sure, they both have these email configuration properly set确保他们都正确设置了这些电子邮件配置
Manage Jenkins" -> "Configure System" -> "E-mail Notification
Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification"
Based on the plugin you are using, make sure appropriate SMTP section is properly configured根据您使用的插件,确保正确配置了适当的 SMTP 部分
Was facing the same issue with Jenkins not able to send email to the recepients. Jenkins 面临同样的问题,无法向收件人发送电子邮件。 Tired the above solution...It works, Thanks for the solution.厌倦了上述解决方案......它有效,感谢您的解决方案。 Basically, we have to configure email settings under both the sections Manage Jenkins" -> "Configure System" -> "E-mail Notification Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification"基本上,我们必须在 Manage Jenkins" -> "Configure System" -> "E-mail Notification Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification" 下配置电子邮件设置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.