Giter Site home page Giter Site logo

connectionmaster / email-starter-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from springload/email-starter-kit

0.0 0.0 0.0 3 MB

Email starter kit

Home Page: https://springload.github.io/email-starter-kit/

Shell 0.38% JavaScript 9.38% HTML 55.88% CSS 34.36%

email-starter-kit's Introduction

Email starter kit

Coding for HTML emails is like coding for Internet browsers from 10 years ago. Picture a website from a decade ago: that’s the level of design complexity we can reasonably shoot for. Tables Are Your Best Friend

Important links
template building documentation
CSS support in email clients

Installation

Clone the project on your computer, and install Node. This project also uses nvm.

From the command-line:

cd ~/Development/sites/
git clone [email protected]:springload/email_starter_kit.git
cd email_starter_kit
# Install the required Node and npm versions.
nvm install
# Then, install all project dependencies.
npm install
pip install wrangler

Working on the project

# Start the server.
npm run start

Publishing the templates

# Prepare the templates for deployment
npm run deploy

Documentation

For designers

if you want your email to render well in every email client, stick to using a width of 600px. Plus this is what our default starter kit uses.

For developers

Please if you come across any of your own please document them here

< Bugs you need to be aware of

Divs have positioning and box model issues in different clients, in particular those that use Microsoft Word (Outlook) to render. You can use divs if you want but safer to code like it’s the 90's and stick to tables.

#ffffff instead of #fff

In general it’s easier to stick with standard system fonts. That includes Helvetica, Arial etc.

However, we can use web fonts like Google fonts. You should put them behind a WebKit conditional media query otherwise Outlook will mess up your type e.g.

If you want to use margins you need to have a capital M for example Margin: 30px; as this is the only way it works in Outlook Inline CSS instead of stylesheets

Cache strings break when importing a template into campaign monitor

Images always need the width defined

USING RETINA IMAGES IN OUTLOOK

Some versions of Microsoft Outlook still display the retina images at their full size, despite the explicit sizes set by the width and height attributes. To get around this, you can include a max-width rule in the style attribute of the image.

DO NOT USE * it can cause all sorts of mess

Email client support

Email client support is informed by analytics on existing campaigns of comparable audiences.

Email client Version Testing in Campaign Monitor
Gmail Gmail Yes
iOS Devices iPhone Yes
iOS Devices iPad Yes
Apple Mail Apple Mail 10 No – Use Apple Mail 9 instead
Apple Mail Apple Mail 9 Yes
Outlook.com Outlook.com Yes
Microsoft Outlook Outlook 2016 Yes
Microsoft Outlook Outlook 2013 Yes
Microsoft Outlook Outlook 2010 Yes
Spark.co.nz Spark.co.nz No – Uses the user's browser's rendering?
Windows Live Desktop Windows Live Desktop No – Discontinued. Probably using the same underlying engine as Outlook
Android Android 7 No – Use Android 4 instead
Yahoo! Mail Yahoo! Mail Yes
Thunderbird Thunderbird Yes

email-starter-kit's People

Contributors

thibaudcolas avatar emarref avatar katie-day avatar laurarbunea avatar mrhigham avatar mrgarethprice avatar samanthaksanders avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.