Reach HTML Emails
Feb 2018 - Mar 2018
- Create high performing HTML emails using reusable template HTML
- Make the templates editable via the MailChimp admin area
- Render the emails accurately across email clients and screen sizes
Reach NC Voices needed a reusable email template for their multiple campaigns. My job was to create a template from a pre-existing design and some assets. The design was a header, a variable amount of columns, and a footer that linked to their main social accounts.
Reach HTML Email Gallery
The process was pretty straightforward development-wise. Get the assets, then build it out with my framework of choice. The main things I had to account for included:
- Variable amounts of content, including single and multi line content
- Multiple header columns
- Changeable social media links
The process for actually editing the content was done initially, but also fine tuned after the delivery.
For any email, most of the time was spent testing it for cross-client compatibility. The hardest one was Outlook, but I also had to test for Yahoo, Gmail, and other major email clients. For the most part, I test my templates after they are completely built out, then fine-tune from there.
Foundation for Emails
The main technology used for this project was a framework called Inky, or Foundation for Emails. Inky basically takes extremely verbose table markup and turns it into its own intuitive tags. Overall, it’s a lifesaver and I don’t think I’d touch email development without it.
Other tech used for this email template was basic, since not much is allowed in the first place. Inky utilizes SCSS, a gulp/webpack build, and basic knowledge of media queries.
Integrating with MailChimp
Integrating with MailChimp afterwards was fairly straightforward. MailChimp uses its own tags which you specify in the markup. Tags let you duplicate content, set image links, and add colors and styles to paragraphs. It was only a matter of making the necessary parts editable.
Want to check out some code demos?
Converting jQuery Blog Post Component To Vanilla JS
Defining Reusable Column Extends with SCSS
Quick Note: The atSmall type mixins are just basic media queries. Since these kinds of layouts are common, they also need to be overwritable if I want to change the spacing. Generally, the ‘default’ spacing is defined in the extend/mixins. Example Use Cases To get the layout working, you only need a container class and […]