To use mail notification, you first need to set the SMTP server address. On the main page, select System Management--> system settings, and then set up the SMTP server in the Mail Notification tab.
1, Jenkins the default mail notification
Using the Jenkins default mail notification, select the "Email Notification" tab in the "Post-build Actions" option of the project configuration and fill in the email address in "Recipients".
However, so that every compilation will mail notification, a bit annoying, so you can choose the mail notification plug-in, better.
2, the use of mail notification Plug-ins
Download plugin email-ext corresponding *.hpi file, copy to path $jenkins_home/plugins, then reboot JENKINS.
Then in the project configuration, in the "post-build Actions" option, the "Email Notification" tab is not selected, and the "Editable email Notification" tab is checked. and fill in the address of the receiving mail in the global recipient list, other defaults.
When the setting is complete, the corresponding mailbox address is notified by a compilation error.