Search code examples
pythonemailsmtpmimepop3

Does python have a robust pop3, smtp, mime library where I could build a webmail interface?


Does python have a full fledged email library with things for pop, smtp, pop3 with ssl, mime?

I want to create a web mail interface that pulls emails from email servers, and then shows the emails, along with attachments, can display the sender, subject, etc. (handles all the encoding issues etc).

It's one thing to be available in the libraries and another for them to be production ready. I'm hoping someone who has used them to pull emails w/attachments etc. in a production environment can comment on this.


Solution

  • It has all the components you need, in a more modular and flexible arrangement than you appear to envisage -- the standard library's email package deals with the message once you have received it, and separate modules each deal with means of sending and receiving, such as pop, smtp, imap. SSL is an option for each of them (if the counterpart, e.g. mail server, supports it, of course), being basically just "a different kind of socket".

    Have you looked at the rich online docs for all of these standard library modules?