Installation
Manage Jenkins > Manage Plugins > Email Extension Plugin
Configure SMTP
Manage Jenkins > Configure System > Extended E-mail Notification
Option 1 : use TLS
- smtp.gmail.com
- port : 465
- unckeck SSL
- -Dmail.smtp.starttls.enable=”true” *** before -jar
“%BASE%\jenkins.war” *** in `C:\Program Files (x86)\Jenkins\jenkins.xml`
-Dmail.smtp.starttls.enable="true" -jar "%BASE%\jenkins.war"
Option 2 : use SSL
1. smtp.gmail.com
2. port : 465
Default content
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
{BUILD_LOG, maxLines=10000}
Check console output at $BUILD_URL to view the results.
The params is listed in ? in “Content Token Reference” section
Configure a project to send email at every build
- Click “Add post-build action”
- Click “Editable Email Notification”
- Click “Advanced Settings…”
- Click “Add Trigger”
- Click “Always”
- Save
Configuration Example

NOTE : In Advance setting, the default Always
will notify both `Recipient List` and `Developer`, the Failure - Any
will notify `Developer` which is the person who commit to Git.
ref : https://www.lifewire.com/what-are-the-gmail-smtp-settings-1170854,
http://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/