TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Canned Emails – a minimal site with prewritten emails

137 pointsby davidmerrimanover 10 years ago

17 comments

bramggover 10 years ago
Today I contributed to the greater good of society:<p><pre><code> var output = &quot;&quot;; $(&#x27;h2 a&#x27;).each(function(i) { output += &quot;TITLE: &quot; + $.trim(this.innerHTML) + &quot;\n&quot;; var email = decodeURIComponent(this.href).slice(13).split(&quot;&amp;subject=&quot;); output += &quot;SUBJECT: &quot; + email[1] + &quot;\n&quot;; output += &quot;BODY:\n&quot; + email[0].replace(&#x2F;\n( )+&#x2F;g, &quot;\n&quot;) + &quot;\n\n\n\n&quot;; console.log(output); }); </code></pre> That being said I love the site :)
评论 #9049733 未加载
评论 #9049656 未加载
madeofpalkover 10 years ago
Neat. Would be handy though if you could preview the text without it opening a mailto
评论 #9048732 未加载
rubiquityover 10 years ago
I can tell these are written really well because the voice that I hear in my head as I read them is your typical insincere Silicon Valleyite. Well done!
评论 #9048973 未加载
Aoyagiover 10 years ago
Wow, so much potential.<p>There&#x27;s some weird formatting going on though. I might be using slightly old and lightweight e-mail client (M2 in Opera12), but I still don&#x27;t think it should look like this <a href="http://puu.sh/fTYSp/c4f0a3bb84.png" rel="nofollow">http:&#x2F;&#x2F;puu.sh&#x2F;fTYSp&#x2F;c4f0a3bb84.png</a>
评论 #9050698 未加载
评论 #9049442 未加载
评论 #9049720 未加载
k_szeover 10 years ago
The fact that there&#x27;s a canned e-mail for breaking up is slightly disturbing.
评论 #9049936 未加载
bonn1over 10 years ago
Still I don&#x27;t know how to avoid that the annoying Apple mail program opens all the mails and not Gmail&#x27;s compose view within in the browser. Thus, I&#x27;d also agree to just get a text preview from the text and maybe not just one version but many curated from users as a next feature.
评论 #9049064 未加载
thefoxover 10 years ago
It would be better if you set the body for each email with JavaScript and the new lines with &quot;%0A&quot; instead of the indented HTML code. Or don&#x27;t use indented HTML code for the body blocks. The indented HTML code has also effect of the style of the email: the first line is normal, the second line and all following lines are indented with 25 spaces. This looks strange.<p>However, I like the idea of this website.
huhtenbergover 10 years ago
Ironically enough clicking on &quot;apologize from problem &#x2F; bug&quot; crashed Firefox.
daledaviesover 10 years ago
The email body seems to be prefixed with the following, which is showing in my webmail editor (Roundcube). Is it a problem with my configuration or this site?<p>&lt;!-- html ignored --&gt;&lt;!-- head ignored --&gt;&lt;!-- meta ignored --&gt;&lt;body&gt;&lt;p&gt;
评论 #9049380 未加载
strikingover 10 years ago
I thoroughly enjoy the fact that there&#x27;s a breakup email. Hopefully we&#x27;ll get more canned emails in the future.
SomeCallMeTimover 10 years ago
&quot;apologize from problem &#x2F; bug&quot; should be &quot;apologize for...&quot;<p>Otherwise, very cool.
thefoxover 10 years ago
You should never ask to ask for a question. And you shouldn&#x27;t announce your question.<p>Just ask.
评论 #9049388 未加载
tobyhinloopenover 10 years ago
Thanks, I really needed the breakup letter!
username223over 10 years ago
Does their &quot;unsubscribe aggressively&quot; link work for their own site? I never want to see anything generated by this.
bcxover 10 years ago
This is pretty awesome, thanks dave!
curiouslyover 10 years ago
nothing happens when I click on the links.
评论 #9049578 未加载
maxxxcohenover 10 years ago
This is so misleading, clearly they are not prewritten.