20130725 LT at AQ

13
HTML in e-mail iwanaga

description

about MHTML img embedding.

Transcript of 20130725 LT at AQ

Page 1: 20130725 LT at AQ

HTML in e-mailiwanaga

Page 2: 20130725 LT at AQ

Who am I

Working at

Twitter bot@quake_alert@quake_alert_en

Yoshihiro Iwanaga

Page 3: 20130725 LT at AQ

Work with AQ

Discussion App UX Design Consulting

Number of active users was increased dramatically

Page 4: 20130725 LT at AQ

To gather more user…

Mail Magazine

・ inspire motivation to visit app

・ notify hot / interesting discussion

gather more comments / advices

User Satisfaction

Page 5: 20130725 LT at AQ

for better presentation

I decided to use

HTML Mail

Page 6: 20130725 LT at AQ

however

Page 7: 20130725 LT at AQ

omg…

some mail clients block image downloading

Page 8: 20130725 LT at AQ

How can I do with this?

RFC2557MIME Encapsulation of Aggregate Documents,such as HTML (MHTML)

Page 9: 20130725 LT at AQ

1. Use “multipart/related”

2. Refer image by “Content ID”

3. Send

Answer

Page 10: 20130725 LT at AQ

From: [email protected]: [email protected]: MHTML with embedded imageMIME-Version: 1.0Content-Type: multipart/related; boundary="----=boundary”;type="text/html”;

------=boundaryContent-Type: text/html; charset=UTF-8Content-Transfer-Encoding: 7BIT

<html> <head></head> <body> <img src="cid:foo"> </body></html>------=boundaryContent-Type: image/png; name=foo.pngContent-Description: foo.pngContent-Transfer-Encoding: base64Content-Disposition: inline; filename=“foo.png”;Content-ID: foo

iVBORw0KGgoAAAANSUhEUgAA ...------=boundary

Header

Body

Image Data

Page 11: 20130725 LT at AQ

Notice

–Size limitation on mail (e.g. 200KB)

– JavaScript and CSS3 are NOT

reliably available

Users use not Web Browser, but Mail Browser.

Page 12: 20130725 LT at AQ

Result

Page 13: 20130725 LT at AQ

Thanks

@quake_alert@quake_alert_en

please follow