Jenkins email configuration

Hi I have the following email configuaration for my jenkins. I can't get it to test the configuration for email

SMTP SERVER: smtp.gmail.com

Default user e-mail suffix: @gmail.com

Use SMTP Authentication: checked

username: "my full gmail id:

password: "my gmail id password"

Use SSL: Checked

SMTP Port: 465

reply to address: noreply@gmail.com

Charset: UTF8

Test email recipient: "my full email id"

Can someone tell me why i still get the following error when i test configuration. I am using a windows 8 machine and tomcat as my server

Failed to send out e-mail

javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
nested exception is:
java.net.ConnectException: Connection timed out: connect

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638

Your exception says, that there is no SMTP server on 465 port

Uncheck SSL and use post 587


I guess your are facing the same problem as I do.

I have searched around, and finally, it is the mcafee, which blocked the connection.

You may using some other antivirus software, may also cause the same issue. So, check it, edit the trust center or something similar.

For me, I just get mcafee removed -- this is also not a easy work. I really really hate mcafee !


Give your full gmail id at "System Admin e-mail address" under Manage Jenkins -> configurations.

This might help as well.

https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch04s08.html

链接地址: http://www.djcxy.com/p/81376.html

上一篇: 在Mac OS中Jenkins测试电子邮件通知失败

下一篇: 詹金斯电子邮件配置