Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomekwojcik
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
tomekwojcik
13y ago
envelopes.conn.SMTP is a wrapper for smtplib.SMTP that supports Envelope objects and is reusable. Envelope.send() is just a shorthand you can use if you don't care about reusing connections. For requests it's simpler to support to
2.
▲
by
tomekwojcik
13y ago
Note that, for CC and BCC addresses, there's a number of accepted formats. Consult docs for more info: http://tomekwojcik.github.io/envelopes/api/envelope.html
3.
▲
by
tomekwojcik
13y ago
I don't generally do Django, but I don't think it should be a problem. Just a word of warning - if you're going to use a global per-app SMTP connection remember to wrap it in connstack. The Flask example shows this and it sho
4.
▲
by
tomekwojcik
13y ago
Debug mode is a nice catch. Thanks. As far as GMail SMTP goes, I've been using Envelopes over GMail SMTP for about a week with great success. The first example in the docs shows just that. Also, I have customized SMTP subclasses for GM
5.
▲
by
tomekwojcik
13y ago
The API is still young and I'm perfectly aware it could use some love (especially that I wrote the first Envelopes class at 3AM while trying to simplify my workflow). I've been considering renaming "from_addr" and "
6.
▲
by
tomekwojcik
13y ago
I'm aiming at Requests' robustness, but it's still a long way to go for Envelopes. Good news is - it works and sends e-mails :). If you find any issues please report them at GitHub. Thanks and have fun.