Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins email configuration

Tags:

smtp

jenkins

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: [email protected]

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
like image 797
user3246489 Avatar asked Jul 15 '14 16:07

user3246489


1 Answers

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

like image 91
Sreekanth Avatar answered Oct 18 '22 22:10

Sreekanth