GitXplorerGitXplorer
r

email-templates

public
11 stars
4 forks
3 issues

Commits

List of commits on branch master.
Unverified
53bfb2696e54785d2d5d2bc5f53820ef0f175022

Add grey tables

rrafeca committed 9 years ago
Unverified
256361d3de1f1f62bee61201525656642ed06d6b

Add retina version of link-plus image

rrafeca committed 9 years ago
Unverified
1be9508b8d0971ac98e3c307c518f4c7bda3b0ff

Fix height of header on mobile

rrafeca committed 9 years ago
Unverified
66f4b39542f54719da4f2bc0f786e8fb2de1844c

Add breakwords class

rrafeca committed 10 years ago
Unverified
7a33f09c6b2c8ef3c66351afee39ff6a285ccc61

Various fixes

rrafeca committed 10 years ago
Unverified
af36043a4f4bd9e4e4677ee944196c869ed2e251

Update Readme

rrafeca committed 10 years ago

README

The README file for this repository.

responsive emails template

This project contains an example of responsive email templates (they were used to create the giffgaff marketing emails).

You can check the templates by accessing here

How to test

The project contains a Rakefile script to automate the compilation and sending of the emails in order to ease the testing.

Requirements

To be able to use the Rake tasks, you need to have Ruby installed.

Once it's installed, go to the folder where you have checked out this repository, and install its dependencies:

$ bundle install

Sending emails

To send the basic template to any address, just execute the following:

$  rake "sendmail[youremailadress@gmail.com]"

To send any other email (a different html file inside the repo folder), just add the filename as the second parameter:

$  rake "sendmail[youremailadress@gmail.com,statement_points]"

Building emails

You can only compile the email into a new html file without sending any email. To do so, execute the build task witht the filename of the mail that you want to build:

$  rake "build[statement_points]"

The built email will be stored inside the dist/ folder with the same file name as the original html.

Additionally, you can build all the emails in a specific folder:

$  rake "buildall[myemails/]"

Compatibility

First-class browsers

  • Gmail (Chrome 24 in OSX)
  • iPhone client (iOS 7)

Full list of tested browsers

Mobile clients

  • iPad (iOS 6.1)
  • iPhone (iOS >=5.1)
  • Android (2.3)
  • Gmail App (iOS 5.1 in iPhone)
  • Gmail App (iOS 6.1 in iPad)
  • Gmail App (Android 4.0 in HTC Desire)

Desktop clients

  • Mail.app 6.2 (OSX 10.8)
  • Oulook 2011 (OSX 10.8)
  • Windows Live Mail 2012 (Windows 7)
  • Mozilla Thunderbird 17 (Windows 7)
  • Outlook Express 6.0 (Windows XP) - minor issues
  • Outlook 2007 (Windows XP) - minor issues

Web-based providers

  • Gmail (Safari 6 in OSX)

  • Gmail (Firefox 18 in OSX)

  • Gmail (IE7/IE8 in Windows)

  • Gmail Mobile (iOS 5.1 in iPhone)

  • Yahoo! (Chrome 24 in OSX)

  • Yahoo! (Safari 6 in OSX)

  • Yahoo! (Firefox 18 in OSX)

  • Yahoo! (IE7/IE8 in Windows)

  • Yahoo! Mobile (iOS 5.1 in iPhone)

  • live.com (Chrome 24 in OSX)

  • live.com (Safari 6 in OSX)

  • live.com (Firefox 18 in OSX)

  • live.com (IE7/IE8 in Windows) - minor issues

  • live.com Mobile (iOS 5.1 in iPhone) - minor issues

  • Outlook Web App (any browser) - major issues

Not tested yet

  • Outlook 2010
  • IE9/IE10
  • Yahoo iOS/Android App
  • Android Client 4.0, 4.1
  • Blackberry
  • Windows Phone 7.5/8.0
  • FirefoxOS

Known issues

Minor bugs

  • Titles in green (live.com - IE7,IE8)
  • Wrong margins all across the email (live.com - IE7,IE8, mobile site)
  • Margins wrong in bottom links (live.com - all browsers)
  • Horizontal separators of 2px (Outlook Express)
  • Lists margins are not perfect (Outlook 2007)

Major bugs

  • Bullets in lists are missplaced (Outlook Web App)
  • Top navigation has no styles (Outlook Web App)
  • Mobile background images not shown (Android 2.3)

Platform problems

  • The following websites show the desktop version when accessing from mobile:
    • Yahoo!
    • Gmail
    • live.com
    • GMail app in iOS
  • The email is shown really big (desktop size) and can't be zoomed out (Gmail app in Android - common problem)

LICENSE

  • The giffgaff name, logo and all associated designs are property of giffgaff.com
  • The HTML, CSS and Ruby code in this repository is released under the MIT license