TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Transactional HTML Email Templates

271 点作者 twakefield将近 11 年前

14 条评论

patio11将近 11 年前
These are incredible. Thanks.<p>Elaboration: You can buy email templates on ThemeForest for ~$2 and they&#x27;ll be prettier but it is very, very rare that they are actually as thoroughly tested as these are. Source: The guy who deals with bug reports like &quot;It&#x27;s unreadable on [insert a device that neither the designer nor the email sender owned]&quot; way more often than he&#x27;d like to.<p>Fun story, which I&#x27;m telling you because it is a fun story and not because I want to scare you off using Themeforest designs: I once bought, and promptly shipped, a transactional email template. It happened to include a reproducible remote crash against at least three major versions of Outlook. (After finding this out <i>the hard way</i>, I reported it to Microsoft&#x27;s security, which looked into it for a few months before deciding &quot;That sucks but it doesn&#x27;t look like remote code execution is actually exploitable so <i>phew</i> dodged a bullet there, didn&#x27;t we.&quot;)
评论 #8173933 未加载
评论 #8174286 未加载
sundance0将近 11 年前
These are great, and really simple to use. Already adapted for my latest project!<p>Also, if you didn&#x27;t catch it in there: the [premailer][1] library is awesome, and helps make email templates more manageable (use CSS&#x2F;LESS&#x2F;SCSS styles like normal, then run your HTML email through premailer before shipping and it&#x27;ll inline everything for you). I use the Python library with Django to preflight emails before sending. Works like a charm!<p>[1]: <a href="https://github.com/peterbe/premailer/tree/master" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;peterbe&#x2F;premailer&#x2F;tree&#x2F;master</a><p>Also available in Ruby, Node, and PHP flavors
评论 #8175532 未加载
评论 #8174142 未加载
评论 #8173927 未加载
评论 #8174326 未加载
SuperKlaus将近 11 年前
Directly on the heels of &quot;Open Source Email Templates (sendwithus.com)&quot; <a href="https://news.ycombinator.com/item?id=8154646" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8154646</a><p>Gotta love competition.
评论 #8173823 未加载
评论 #8175279 未加载
评论 #8174305 未加载
lelf将近 11 年前
Please don&#x27;t forget to include text&#x2F;plain multipart&#x2F;alternative while you are at it.
encoderer将近 11 年前
These are great. I&#x27;ve been thinking a lot lately about HTML email vs Text. I used to snicker at people who wanted plaintext, thinking them luddites. But I&#x27;ve had some experience on the other side of this lately with our SaaS startup, Cronitor. I&#x27;ve learned that a plainly worded and concise plaintext email can be a very powerful tool.
jimktrains2将近 11 年前
For those of you, like me wondering what a transactional email is: <a href="http://blog.mailchimp.com/what-is-transactional-email/" rel="nofollow">http:&#x2F;&#x2F;blog.mailchimp.com&#x2F;what-is-transactional-email&#x2F;</a><p><pre><code> &gt; So what is transactional email? Coming from a MailChimp &gt; state of mind, you might simply think of it as &quot;anything &gt; that isn’t bulk&quot;. Basically, it is email sent to an &gt; individual based on some action. It could be: &gt; &gt; * an action they took directly &gt; * an action they were the target of or, &gt; * perhaps even inaction on their part</code></pre>
mendelk将近 11 年前
For those that need more complex designs, there&#x27;s also responsive email templates from Zurb[0].<p>[0] <a href="http://zurb.com/playground/responsive-email-templates" rel="nofollow">http:&#x2F;&#x2F;zurb.com&#x2F;playground&#x2F;responsive-email-templates</a>
michaelmior将近 11 年前
Here&#x27;s an alternative[0] from Sendwithus worth checking out.<p>[0] <a href="https://github.com/sendwithus/templates" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sendwithus&#x2F;templates</a>
jasonwen将近 11 年前
This is really awesome. Just needed this. 3 years ago. Sometimes I really think why things are so obvious but takes so long before someone realises and take action.<p>Thanks a lot for the resource!
callmeed将近 11 年前
These are really great.<p>If anyone is interested in collaborating, I&#x27;m thinking about converting these (and the SendWithUs ones) into ActionMailer layouts and views for use in Rails apps.
pionar将近 11 年前
The MIT license worries me. Does that mean, if I use it, I have to embed the license somewhere in every email, as that&#x27;s how the MIT license reads to me.
评论 #8177174 未加载
ferrantim将近 11 年前
Thanks Mailgun! These are really awesome.
pearknob将近 11 年前
A side note: I really love Mailgun as a service :)
orliesaurus将近 11 年前
sweet!