How to use email templates from HTMLemail.io
For bugs and problems please create a new issue here.
How to try out these email templates as quickly as possible.
- Go to HTMLemail.io and download the templates.
htmlemail.zip. You should now have files that look like this.
- Open up PutsMail and create a new test email. Enter your email as the recipient.
- Open up one of the inlined emails
alert-success-inlined.htmlin your favorite editor. Copy and paste the code into PutsMail like this.
- Check your inbox to see a preview of your email.
Working with inline CSS
These emails come packaged with both inlined CSS and a CSS stylesheet.
CSS stylesheets are great for ensuring all your emails are consistent as you can manage styles in one place.
However, before you send your HTML email, you need to inline the CSS as some email clients do not render CSS that is not inlined.
How to inline CSS
Option one is to use the templates that are already inlined, and continue to write any new styles inline. But as mentioned these are harder to work with as it is harder to maintain your styles.
Option two is to use an inline CSS tool. Copy and paste your email into an inliner and it will inline the CSS for you. I like using Premailer. Putsmail, Zurb, Campaign Monitor and Mailchimp all have good inliner tools.
Option three, you can rely on your ESP (email service provider) to do the work for you. For example, you can set Mailchimp to automatically inline CSS for you before sending your campaign.
Working with images in email
These emails come packaged with retina ready image assets and some stock photography.
In order for these to work they need to be uploaded somewhere and available via the web. The
src then has to reference the full path of the image.
The good news is if you're using an ESP like Mailchimp, Campaign Monitor, Salesforce or any other marketing service, they will let you upload the images. If you're using an API service like Mailgun or Sendgrid you may have to upload the images yourself to your own CDN.
For example, I've uploaded my logo to a CDN. In the header here I would replace
img/logo.png with my logo's full CDN path.
Working with Mailchimp (and other ESPs)
Mailchimp has great tools to make it easy for you to import HTML templates.
- Zip up your email template. You should include one html file, your
main.cssfile and your
- Open up
New Templateand select
Import zip. Select your zip file and give it a name. Screenshot.
- If your zip file was set up right, that should be it. Now use Mailchimp's templating language and merge tags to customize your template.
January 16 2017
- Added better support for ordered and unordered bullet lists
- Fixed a receipt table alignment issue in versions of Outlook by introducing a
receipt-containerelement and class - wrap the receipt table with this container to ensure it is centered in Outlook
- Updated the Instagram and Google Play store icons
August 19 2016
display: block;from the
containerdiv as it was causing issues in Gmail for iPhone #2
- Added explicit styles for article heading links to stop default blue being used in Outlook
- Added an Outlook conditional statement to fix image rendering issues in Outlook 2013 120 DPI
- Updated the
license.txtto help clarify some questions around licensing and reselling