Really Simple Responsive HTML Email Template (SCSS + Gulp-Email-Creator)
Sometimes all you want is a really simple HTML email template to edit with Gulp and SASS (SCSS syntax). Here it is.
- Clone this repo
config.default.json(MailChimp and MailGun API endpoints) and save it as
- Start editing files under
You can add as many email templates you like. Just edit
gulpfile.js to point to your html file you are currently editing. Don't forget to call correct css file after
<link rel="stylesheet" type="text/css" href="./../css/main.css" inline>
Sending emails using a marketing service like Campaign Monitor or Mailchimp?
Use the template as is. They'll put the CSS inline for you when you put together your campaign.
Sending emails directly from your app or using a developer service like Mailgun?
- Copy all of email.html
- Paste the HTML as the source into Premailer
- Copy the HTML results and use them in your email view/template
Note that some services may allow you to opt into CSS inlining, such as Mandrill.
Tried and tested
Tested on all major email clients. Mobile, desktop and web.
Hat tip to Zurb's Ink for their awesome collection of email templates, which this was adapted from.
More HTML email resources
I've open-sourced a few other resources you might find useful: