Friday, November 16, 2012

Setting up Email Notification using SMTP

http://creekcodes.blogspot.com/2012/03/jenkins-setting-up-email-notification.html
http://creekcodes.blogspot.com/2012/03/jenkins-setting-up-email-notification_26.html

==========================================================

NOTE: This tutorial is for developers who are using Jenkins installed on their local server (with Internet Connectivity).

So you want to setup Jenkin's Email Notification but you don't have email server?

Assuming you have Yahoo Email account, that will work just fine. We just have to configure the Email Notification of Jenkins.

Under Manage Jenkins, go down to E-mail Notification then set these following information:
SMTP server - smtp.mail.yahoo.com
Default user e-mail suffix - @yahoo.com
Sender E-mail Address - Foobar CI <your.email@yahoo.com>

Use SMTP Authentication - yes
User Name - your.email
Password - p******d

Use SSL - yes
SMTP Port - 465
Reply-To Address - noreply@yahoo.com
Charset - UTF-8

Optionally, you might want to try if it's really working. Type-in your email address and click Test Configuration.

You should be able to receive something like: "This is test email #20 sent from Jenkins"

Below is what your configuration should look like.

Happy spamming! :P

2 comments:

Brant Merryman said...
I'm using Jenkins version 1.476and trying to setup email notifications. When I go to "Configure Jenkins" and go to the "E-mail Notification" section, it only has spots for "SMTP server", "Default user e-mail suffix", and "Sender E-mail Address". The form does not have anything for specifying authentication schemes or parameters (it is not like the form in your post).

Is there something in the configuration I need to change somewhere in order to specify the email sending authentication parameters?
Brant Merryman said...
Someone at work just showed me the solution because he, too, was hung up on this for a long time.

There is an "Advanced" button you have to press. It is located on the right side of the browser window. You have to scroll the browser to the right to see it.

======================================================



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 theSMTP port465. (Big thanks to Anthony Panozzo for sharing and Julio Carrettoni for confirming)

3 comments:

Anthony Panozzo said...
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!
Julio Carrettoni said...
Using smtp.gmail.com with port 465 worked for me too :)

THANKS!
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 Host:smtp.gmail.com
Port:465.

Thank u once again..







3 comments:

  1. One can easily fix the given issue on Gmail for that the user should, first of all, check the extensions the user should wait for a while so that the error subsides itself also the user should check the mailbox and should get it cleared if it is full, also the cache and cookies should be cleared from the browser. If needed then for more information the user should ask the help of the experts they are available at +44-800-368-9067.
    Gmail Helpline Number UK

    ReplyDelete
  2. Send thousand of Mails in bulk process
    This tool help you too boost sale . email sender software

    ReplyDelete