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.

Envelopes - Python email for humans

119 pointsby RobSpectrealmost 12 years ago

10 comments

ghcalmost 12 years ago
If this works as well as Python&#x27;s requests library, then you are my hero. I <i>hate</i> dealing with email in Python, because the standard library interfaces to email are horrible.<p>I have a have a project that could use this <i>now</i>, so I will give it a shot. I will report back with my findings.
评论 #6175214 未加载
评论 #6177691 未加载
ianstormtayloralmost 12 years ago
From an API standpoint:<p>(1) I feel like sending emails isn&#x27;t a task that&#x27;s going to be repeated endlessly across a codebase, so is it really necessary to save three characters by truncating &quot;from_address&quot; to &quot;from_addr&quot;? You lose clarity for very little gain.<p>(2) If truncating the above was so important, why is it &quot;text_body&quot; instead of just plain &quot;body&quot;? In this case, you&#x27;d lose almost no clarity.<p>I prefer APIs to not have unnecessarily abbreviated words—especially when, realistically, I&#x27;m going to type them once per file.<p>(Sorry, pet peeve.)
评论 #6177694 未加载
评论 #6175316 未加载
评论 #6176057 未加载
habituealmost 12 years ago
I feel I should mention Mailer<p><a href="https://pypi.python.org/pypi/mailer" rel="nofollow">https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;mailer</a><p>I think everyone who has ever used the python standard library email modules has had the thought &quot;Well, if I just made a small wrapper around this... it wouldn&#x27;t be so bad&quot;<p>And just about everyone who thought that did it.
codegeekalmost 12 years ago
Looks pretty good. Being a Flask user, happy to see the flask example as well. Would definitely try and use it in side projects of mine. You open to any forks and&#x2F;or pull requests ?
评论 #6175124 未加载
tghwalmost 12 years ago
If they can add IMAP, POP, possibly Exchange, and good email parsing (it&#x27;s truly a pain in the ass to do yourself) this will be a killer library.
评论 #6176803 未加载
topherjaynesalmost 12 years ago
Nice wrapper, though it took me a while to get it to work. Tried with Google SMTP, but ended up throwing Sendgrid on a heroku app and hit that api.<p>Wondering if a debug mode would be helpful for the initial set up. See what requests are being sent&#x2F;received to see what the possible errors are.
评论 #6177709 未加载
omarantoalmost 12 years ago
What is the advantage of having an Envelope class? Why not just have a send function?
评论 #6176250 未加载
ajaxaddictedalmost 12 years ago
Envelopes looks very good for sending emails and for reading emails there is another cool library - Imbox <a href="https://github.com/martinrusev/imbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;martinrusev&#x2F;imbox</a>
bobbyi_settvalmost 12 years ago
We use boto to send email via Amazon&#x27;s Simple Email Service and it is fairly simple. SES allows you to send up to 2000 emails per day for free.
评论 #6175380 未加载
gpsarakisalmost 12 years ago
Seems really nice with a first glance. Are you considering any Django support in the future?
评论 #6176822 未加载
评论 #6177715 未加载