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 - 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
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 smtp.gmail.com as SMTP server then use the SMTP port, 465. (Big thanks to Anthony Panozzo for sharing and Julio Carrettoni for confirming)
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
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 smtp.gmail.com as SMTP server then use the SMTP port, 465. (Big thanks to Anthony Panozzo for sharing and Julio Carrettoni for confirming)
5 comments:
I followed these instructions and got
javax.mail.MessagingException: Could not connect to SMTP host: pop.gmail.com, port: 995, response: -1
I tried using smtp.gmail.com with port 465 and that works for me. Thanks for the post, helped a lot!
Using smtp.gmail.com with port 465 worked for me too :)
THANKS!
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 Host:smtp.gmail.com
Port:465.
Thank u once again..
Using smtp.gmail.com with port 465 worked for me too :)
Thanks for ur help...!
Thanks for the post, it is helpful.
Post a Comment