使用gmail配置Jenkins电子邮件通知 [英] Configuring Jenkins email notification with gmail

查看:1294
本文介绍了使用gmail配置Jenkins电子邮件通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将jenkins配置为使用Gmail作为POP提供程序发送电子邮件通知,但我无法成功

I tried to configure jenkins to send email notification with gmail as the POP provider but I could not succeed

SMTP server - pop.gmail.com
Default user e-mail suffix - @gmail.com
Sender E-mail Address - Foobar CI <your.email@gmail.com>

Use SMTP Authentication - yes
User Name - your.email
Password - p******d

Use SSL - yes
SMTP Port - 995
Reply-To Address - noreply@gmail.com
Charset - UTF-8

测试失败:Connection refused

Test failed with : Connection refused

javax.mail.MessagingException:无法连接到SMTP主机:pop.gmail.com,端口:995;
嵌套异常是:
java.net.ConnectException:连接被拒绝:connect

javax.mail.MessagingException: Could not connect to SMTP host: pop.gmail.com, port: 995; nested exception is: java.net.ConnectException: Connection refused: connect

推荐答案

Google SMTP服务器是smtp.gmail.com,如果您使用SSL,那么正确的端口号是465。

The hostname for the Google SMTP server is smtp.gmail.com and if you use SSL, then the correct Port is 465.

POP服务器通常用于接收邮件,不发送邮件。

A POP server is usually just for receiving mails, not sending mails.

这篇关于使用gmail配置Jenkins电子邮件通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆