Repository: leemunroe/responsive-html-email-template Branch: master Commit: 60b5b6ddf960 Files: 4 Total size: 20.3 KB Directory structure: gitextract_n99o6cvc/ ├── email-inlined.html ├── email.html ├── license.txt └── readme.md ================================================ FILE CONTENTS ================================================ ================================================ FILE: email-inlined.html ================================================ Simple Transactional Email ================================================ FILE: email.html ================================================ Simple Transactional Email ================================================ FILE: license.txt ================================================ The MIT License (MIT) Copyright (c) [2013] [Lee Munroe] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: readme.md ================================================ # Free Responsive HTML Email Template Sometimes all you want is a really simple responsive HTML email template with a clear call-to-action button. Here it is. [See live preview](http://leemunroe.github.io/responsive-html-email-template/email.html). Simple HTML Email Template ## Inline your CSS before sending Email is notorious for inconsistent CSS support. Therefore you should always inline your CSS and send a test to yourself before sending. ### Sending emails directly from your codebase or using a developer service? For an API service (like Mailgun, SendGrid, Postmark) **you need to inline the CSS before sending**. See `email-inlined.html` for an example. You can use this [Email CSS Inliner](https://htmlemail.io/inline/) and then [send a test email to yourself](https://postdrop.io) to verify it works as expected. * Copy all of email.html * Paste the HTML as the source into the inliner * Copy the HTML output and use this as the email template you send ### Sending emails using a marketing service like Mailchimp? Use the template `email.html` as is. They'll put the CSS inline for you when you put together your campaign. ## Images in email When inserting images remember to include the following attributes or risk them breaking in different clients: * `src` * `alt` * `width` * `height` * `border` Example: `Useful alt text` [More information here](https://www.smashingmagazine.com/2017/01/introduction-building-sending-html-email-for-web-developers/) ## Tried and tested on all major email clients Tested on mobile, desktop and web. Tested on Email Clients ## More HTML email resources * [10 Premium HTML Email Templates for Developers](https://htmlemail.io) * [Free Figma Email Template Design System](https://htmlemail.io/design-system) * [An Introduction To Building And Sending HTML Email](https://www.smashingmagazine.com/2017/01/introduction-building-sending-html-email-for-web-developers/) * [Grunt Email Design Workflow](https://github.com/leemunroe/grunt-email-design) * [Everything Web Developers Need To Know About Transactional Email](https://webdesign.tutsplus.com/articles/everything-developers-need-to-know-about-sending-transactional-email--cms-31759) * [Manage and Send Email Templates To Yourself](https://postdrop.io) * [Accessible Email Evaluation Tool](https://www.accessible-email.org/) This free template is part of a pack of responsive email templates for developers and startups available on [HTML Email](https://htmlemail.io). [![image](https://github.com/leemunroe/responsive-html-email-template/assets/15963/61d4a6d7-bd0e-4241-b4e5-d766162df192)](https://htmlemail.io)