troubleshooting email like a pro

111
Troubleshooting Email Like a Pro #LitmusLive

Upload: litmus

Post on 21-Jan-2018

122 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Troubleshooting Email Like a Pro

Troubleshooting EmailLike a Pro

#LitmusLive

Page 2: Troubleshooting Email Like a Pro

Get the Resources

You can find the slides, examples, and more at:

litmus.com/lp/troubleshooting-boston

#LitmusLive

Wifi: LitmusLive Password: weloveemail

Page 3: Troubleshooting Email Like a Pro

Jaina Mistry

Email Marketing Specialist, Litmus

@jainamistry

Jason Rodriguez

Product Manager, Litmus

@rodriguezcommaj

Page 4: Troubleshooting Email Like a Pro

Here's the Plan

Page 5: Troubleshooting Email Like a Pro

Agenda

• 8:15 - Background Info

• 8:45 - Troubleshooting Workflows

• 9:10 - Common Bugs & Fixes

• 10:00 - BREAK

• 10:20 - Quick Review

• 10:30 - Exercise Time

• 11:00 - Email Optimization

• 11:30 - Q&A Session

• 12:00 - LUNCH

Page 6: Troubleshooting Email Like a Pro

Why Problems Happenor The Crazy State of Email Rendering

Page 7: Troubleshooting Email Like a Pro

— Me, now

“Email is unique.”

Page 8: Troubleshooting Email Like a Pro

✔ Iterative

✔ Testable

✔ Personal

✔ Forgettable

Page 9: Troubleshooting Email Like a Pro

The problem with email client icons background

Page 10: Troubleshooting Email Like a Pro

IMAP & POP

WebDav

Exchange

Domino

Preprocessor

Trident (IE)

WebKit

Gecko

MS Word

Inbox

Server Sanitization Rendering Inbox View

The Rendering Pipeline

Page 11: Troubleshooting Email Like a Pro
Page 12: Troubleshooting Email Like a Pro

THERE ARE

NO STANDARDS

Page 13: Troubleshooting Email Like a Pro

WEB ≠ EMAIL

Page 14: Troubleshooting Email Like a Pro

EMAIL DESIGN WEB DESIGN

<table> <div>

<td> <h1>

<td> <p>

px em

style=“” <style>

bgcolor background-color

padding margin

Page 15: Troubleshooting Email Like a Pro

EMAIL DESIGN WEB DESIGN

#ffffff #fff rgba hsa

individual properties shorthand

width=“100” width: 100px;

align=“left” text-align: left;

style=“” <style>

Page 16: Troubleshooting Email Like a Pro

HTML & CSS Refresher

Page 17: Troubleshooting Email Like a Pro

All emails consist of:

HTML and CSS

Page 18: Troubleshooting Email Like a Pro

Tags <a> <h1> <table>

Attributes width="" cellpadding=""

HTML = Structure and content

Page 19: Troubleshooting Email Like a Pro

Rules padding color font-family

Values 100px #333333 sans-serif

CSS = Style and Manipulation

Page 20: Troubleshooting Email Like a Pro

Most of your problems will come from issues with your code.

At least the ones you can fix.

Page 21: Troubleshooting Email Like a Pro

A Guide to Troubleshooting

Determining What's Going On

Page 22: Troubleshooting Email Like a Pro

Email Troubleshooting 101

1. Test your email

2. Check your images

3. Check your HTML

4. Ask for help

Page 23: Troubleshooting Email Like a Pro

Test Your Email

Step 1

Page 24: Troubleshooting Email Like a Pro

During Development (in browser, in Builder, do

test sends (PutsMail))

Page 25: Troubleshooting Email Like a Pro

During Development (in browser, in Builder, do

test sends (PutsMail))

Page 26: Troubleshooting Email Like a Pro
Page 27: Troubleshooting Email Like a Pro
Page 28: Troubleshooting Email Like a Pro

Step 2

Check Your Images

Page 29: Troubleshooting Email Like a Pro
Page 30: Troubleshooting Email Like a Pro

Images in Email Require:

1. Absolute paths

2. Publicly accessible servers

Page 31: Troubleshooting Email Like a Pro

Relative Path <img src="/img/img.jpg">

Absolute Path <img src="http://example.com/img/img.jpg">

Page 32: Troubleshooting Email Like a Pro
Page 33: Troubleshooting Email Like a Pro

Check the File Name

Page 34: Troubleshooting Email Like a Pro

Check the File Type

JPG PNG GIF SVG TIFF

Page 35: Troubleshooting Email Like a Pro

Image not displayed.

Page 36: Troubleshooting Email Like a Pro

Check Your HTML

Step 3

Page 37: Troubleshooting Email Like a Pro

Isolate the Problem

Page 38: Troubleshooting Email Like a Pro

Highlight Tables

<table cellpadding="0" cellspacing="0" border="1"> <tr> <td></td>

</tr> </table>

Page 39: Troubleshooting Email Like a Pro

Remove Other Sections

HEADER

HERO SECTION

CTA BLOCK

FOOTER

Page 40: Troubleshooting Email Like a Pro

Reintroduce Components

HEADER

HERO SECTION

CTA BLOCK

FOOTER

Page 41: Troubleshooting Email Like a Pro

Modularity FTW

HEADER

HERO SECTION

CTA BLOCK

FOOTER

+++

Page 42: Troubleshooting Email Like a Pro

Check Syntax Issues

Page 43: Troubleshooting Email Like a Pro

Common Syntax Issues:

1. Missing tags

2. Incorrect tags & values

3. Lack of HTML/CSS support

Page 44: Troubleshooting Email Like a Pro

validator.w3.org

Page 45: Troubleshooting Email Like a Pro

campaignmonitor.com/css

Page 46: Troubleshooting Email Like a Pro

caniuse.com

Page 47: Troubleshooting Email Like a Pro

Check Default Behavior

Page 48: Troubleshooting Email Like a Pro

Override Client Defaults

<table cellpadding="0" cellspacing="0" border="0"> <tr> <td></td>

</tr> </table>

Page 49: Troubleshooting Email Like a Pro

Override Client Defaults

<body style="margin: 0; padding: 0;">

Page 50: Troubleshooting Email Like a Pro

Check the Math

Page 51: Troubleshooting Email Like a Pro

+ =

Outlook Math

Page 52: Troubleshooting Email Like a Pro

See What Clients are Doing to Your HTML

Page 53: Troubleshooting Email Like a Pro
Page 54: Troubleshooting Email Like a Pro

Ask for Help

Step 4

Page 55: Troubleshooting Email Like a Pro

litmus.com/community/discussions

Page 56: Troubleshooting Email Like a Pro

Helpful Hashtags:

#emaildesign #emailmarketing #emailgeeks #litmuscommunity #litmuslive

Page 57: Troubleshooting Email Like a Pro

email.geeks.chat

Page 58: Troubleshooting Email Like a Pro

Common Bugsand How to Fix Them

Page 59: Troubleshooting Email Like a Pro

Issues with Images

Page 60: Troubleshooting Email Like a Pro

Missing ImagesImage not displayed.

Page 61: Troubleshooting Email Like a Pro

Blocked Images

Page 62: Troubleshooting Email Like a Pro

Prevent Collapsing

<img src="" width="600" height="200">

Page 63: Troubleshooting Email Like a Pro

Alternative Text

<img src="" width="600" height="200" alt="20% off coupon">

Page 64: Troubleshooting Email Like a Pro

ALT Text Guidelines:

1. Include on most images

2. Keep empty for non-essential images

3. Keep it short

4. Can be styled using inline CSS

Page 65: Troubleshooting Email Like a Pro

Cached Images table flip, what can you

do?

Page 66: Troubleshooting Email Like a Pro

(╯°□°)╯︵ ┻━┻

Page 67: Troubleshooting Email Like a Pro
Page 68: Troubleshooting Email Like a Pro

Removing Download Button

<a href="https://litmus.com"> <img src="" width="600" height="200" alt="20% off coupon">

</a>

Page 69: Troubleshooting Email Like a Pro
Page 70: Troubleshooting Email Like a Pro

Removing Borders

<a href="litmus.com"> <img src="" width="600" height="200" alt="20% off coupon" border="0">

</a>

Page 71: Troubleshooting Email Like a Pro

Gaps around Images

Page 72: Troubleshooting Email Like a Pro

Removing Gaps

<a href="litmus.com"> <img src="" width="600" height="200" alt="20% off coupon" border="0" style="display: block;">

</a>

Page 73: Troubleshooting Email Like a Pro

Where is my background

image?

Where is my background

image?

Page 74: Troubleshooting Email Like a Pro

Background Images

1. Not supported everywhere (Outlooks, Gmail IMAP)

2. Can use VML for Outlooks

3. Always use fallback colors

Page 75: Troubleshooting Email Like a Pro

Animated GIF Isn’t Animating

Page 76: Troubleshooting Email Like a Pro

Issues with Text and Links

Page 77: Troubleshooting Email Like a Pro

Text Not Aligning Properly

Page 78: Troubleshooting Email Like a Pro

Ensure Alignment

<td align="left"></td> <td align="center"></td> <td align="right"></td>

Page 79: Troubleshooting Email Like a Pro

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora harum maiores totam possimus vero. Quaerat nemo maxime fugit quas aliquam earum amet sequi omnis nihil, quos ipsam quasi, reiciendis repudiandae?

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora harum maiores totam possimus vero. Quaerat nemo maxime fugit quas aliquam earum amet sequi omnis nihil, quos ipsam quasi, reiciendis repudiandae?

Page 80: Troubleshooting Email Like a Pro

Use MSO Conditional CSS

<!--[if mso]> <style type="text/css"> body, table, td {font-family: Arial, Helvetica, sans-serif !important;}

</style> <![endif]-->

Page 81: Troubleshooting Email Like a Pro

Blank Media Query FTW

@media screen { @font-face { /* FONT DECLARATIONS */

} }

Page 82: Troubleshooting Email Like a Pro
Page 83: Troubleshooting Email Like a Pro

Wrap Suspect Text

.nolink { text-color: #c0c0c0; text-decoration: none;

}

<span class=“nolink”>866-787-7030</span>

Page 84: Troubleshooting Email Like a Pro

Use a CSS Reset

<style> a[x-apple-data-detectors] {

color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important;

} </style>

Page 85: Troubleshooting Email Like a Pro

Special Symbols £$€&© etc.

Page 86: Troubleshooting Email Like a Pro

HTML Lists Don’t Look Right

This is a list of information:

Item One

Item Two

Item Three

Item Four

This is a list of information:

• Item One

• Item Two

• Item Three

• Item Four

Page 87: Troubleshooting Email Like a Pro

More Random Stuff

Page 88: Troubleshooting Email Like a Pro

Full Email Not Shown in Gmail

Page 89: Troubleshooting Email Like a Pro

Full Email Not Shown in Gmail102kb

Clipping in Gmail

Page 90: Troubleshooting Email Like a Pro

What if tables look bigger than expected?

Page 91: Troubleshooting Email Like a Pro

Check Default Behavior

Page 92: Troubleshooting Email Like a Pro

Override Client Defaults

<table cellpadding="0" cellspacing="0" border="0"> <tr> <td></td>

</tr> </table>

Page 93: Troubleshooting Email Like a Pro

Override Client Defaults

<body style="margin: 0; padding: 0;">

Page 94: Troubleshooting Email Like a Pro

BreakAnyone else thirsty?

Page 95: Troubleshooting Email Like a Pro

Quick RefreshWhat have we learned so far?

Page 96: Troubleshooting Email Like a Pro

These guys cause a lot of problems…

Page 97: Troubleshooting Email Like a Pro

IMAP & POP

WebDav

Exchange

Domino

Preprocessor

Trident (IE)

WebKit

Gecko

MS Word

Inbox

Server Sanitization Rendering Inbox View

The Rendering Pipeline

Page 98: Troubleshooting Email Like a Pro

THERE ARE

NO STANDARDS

Page 99: Troubleshooting Email Like a Pro

Understanding what's supported where

is your first line of defense.

Page 100: Troubleshooting Email Like a Pro

Email Troubleshooting 101

1. Test your email

2. Check your images

3. Check your HTML

4. Ask for help

Page 101: Troubleshooting Email Like a Pro

ExercisesLet's look at some code…

Page 102: Troubleshooting Email Like a Pro

The Plan:

1. Quick assignment

2. A few clues

3. 3 minutes of troubleshooting

4. Review

Page 103: Troubleshooting Email Like a Pro

Exercise #1 Fix the Missing Images

Hints:

https://img.litmuscdn.com/images/next/illustrations

File Formats

Page 104: Troubleshooting Email Like a Pro

Exercise #2 Fix the Layout

Hint:

Page 105: Troubleshooting Email Like a Pro

Exercise #3 Fix the Blue Links

Hints:

HTML Classes Style Resets

Page 106: Troubleshooting Email Like a Pro

Exercise #4 Fix the Responsive Layout 1

Hints:

See if something's missing…

Page 107: Troubleshooting Email Like a Pro

Exercise #5 Fix the Responsive Layout 2

Hints:

See if something's wrong…

Page 108: Troubleshooting Email Like a Pro

Exercise #6 Fix the Styles in Gmail

Hints:

[ hey="wtf" ]

Page 109: Troubleshooting Email Like a Pro

Your Own EmailsWho's brave?

Page 110: Troubleshooting Email Like a Pro

Q&A TimeAnything we missed?

Page 111: Troubleshooting Email Like a Pro

Lunch TimeLet's eat!