Monday, March 26, 2012

Jenkins: Setting up Email Notification using Google SMTP

This is just about the same as the earlier post about Setting up Jenkins' Email Notification using Yahoo SMTP, only now it's for Google SMTP.

SMTP server -
Default user e-mail suffix -
Sender E-mail Address - Foobar CI <>

Use SMTP Authentication - yes
User Name -
Password - p******d

Use SSL - yes
SMTP Port - 995
Reply-To Address -
Charset - UTF-8

To try if it's really working, type-in your email address and click Test Configuration, then you should be able to receive something like: "This is test email #1 sent from Jenkins"

Alternatively, you can also use as SMTP server then use the SMTP port, 465. (Big thanks to Anthony Panozzo for sharing and Julio Carrettoni for confirming)


Anthony Panozzo said...

I followed these instructions and got

javax.mail.MessagingException: Could not connect to SMTP host:, port: 995, response: -1

I tried using with port 465 and that works for me. Thanks for the post, helped a lot!

Julio Carrettoni said...

Using with port 465 worked for me too :)


Anonymous said...

Thank you so much for guiding me.

Infact i kept drooling by using port:587, just to see no output.

Awsome!!.It worked perfectly fine for me by using

Thank u once again..

Shyam Yadav said...

Using with port 465 worked for me too :)

Thanks for ur help...!

Jayvant Karde said...

Thanks for the post, it is helpful.