Build Status

This template includes

Screenshot of this HTML email template

screencapture-file-Users-ting-Downloads-HTML-Email-Template-master-2-01-standard-template-html-2019-05-17-14_48_24

HTML Email Troubleshooting

    • don’t be panic first, deeply breath and go through this bug check list and check some useful notes here.

    • Couldn’t achieve the responsible font size on different screen.
      Check the image added in the email template, sometimes the image increase the max-width of the template and the email client cannot do the media requirement correctly.

  1. Special Issues on Outlook

    • Outlook2007-2016 on Windows 7 the bullet indent is not right.
      Using the inline sytle mso-special-format:bullet can fix it.
    • Outlook2007-2013 on Windows(7-10) Image shown up in real size. For example if the header image is 1180x400, then this image will break the max-width of the mail 600 px.
      Using the right size of the image is important while creating the email HTML.
    • Outlook2007-2013 on Windows(7-10) some copy has been cut off.
  2. Special Issues on Pardot

    • Pardot render all the http or https link into the track link for analysis in its platform. So in order to avoid the webfont links treated as track link just put it in

SendEmail service on MacOS

brew SendEmail

/usr/local/Cellar/sendemail/1.56/bin/sendEmail -f yoursender@gmail.com -t yourRecipient@gmail.com < youttestemail.html -s smtp.gmail.com:587 -xu youraccount@gmail.com -xp password

Email Test with Jenkins pipeline settings

screencapture-file-Jenkins-pipeline-settings

pipeline {
   agent any
    stages {
        stage('clone repo and clean it'){
            steps{
                sh "rm -rf HTML-Email-Template"
                sh "git clone https://github.com/sparrowxiao/HTML-Email-Template.git"
            }
        }
        stage('Ok') {
            steps {
                echo "Ok"
            }
        }
    }
    post {
        always {
            emailext mimeType: 'text/html', 
            body: '${FILE,path="/Users/Shared/Jenkins/Home/workspace/send-test-email/HTML-Email-Template/01-standard-template.html"}', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']], subject: 'Test'
        }
    }
  
}

Good Marketing Email Service