小编典典

使用gmail配置Jenkins电子邮件通知

jenkins

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

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

测试失败:拒绝连接

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


阅读 654

收藏
2020-07-25

共1个答案

小编典典

Google SMTP服务器的主机名是smtp.gmail.com,如果使用SSL,则正确的端口是465。

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

2020-07-25