简体   繁体   中英

Python SMTP server that can receive MIME attachment

I want to implement a simple email server just like amazon kindle mail server does for ebook convert. User mail me doc as attachment. Mail server will retrieve and store those doc. Maybe response back to sender about the convert result, simply success or failure. I want to implement this in Python. Looking into the built in SMTPServer class, it only be able to handle RFC2822 formatted message body.

Is there anyway to achieve this? Thanks

"it only be able to handle RFC2822 formatted message body. " - thats enough for what you are trying to achieve. MIME attachments are covered in RFC 2822 extensions. the python email library contains various functions to walk through the message payload and extract attachments

您可以签出Lamson ,这是一个框架+ SMTP服务器,用于开发电子邮件应用程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM