我试图配置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
Run Code Online (Sandbox Code Playgroud)
测试失败:连接被拒绝
javax.mail.MessagingException:无法连接到SMTP主机:pop.gmail.com,port:995; 嵌套异常是:java.net.ConnectException:连接被拒绝:连接