Tornado non-blocking SMTP client


Answers

Just FYI - I just whipped up a ioloop based smtp client. While I can't say it's production tested, it will be in the near future.

https://gist.github.com/1358253

Question

I'am looking for python async SMTP client to connect it with Torando IoLoop. I found only simple implmementation (http://tornadogists.org/907491/) but it's a blocking solution so it might bring performance issues.

Does anyone encountered non blocking SMTP client for Tornado? Some code snippet would be also very useful.




is there a simple example how to send emails using Tornado?

Tornado doesn't provide anything to handle SMTP.

You can use smtplib, although it's synchronous. Check out the example given.




Links



Tags