What is the simplest way to send an email with an mp3 attachment using Python? I've written scripts in the past which used a pipe to sendmail to send basic email messages, but I've never bothered with attachments before.
Thanks in advance.
Use email package . It's pretty simple.
In the URL I linked, you'll find straight examples on how to do just that.
Hope it helps.
您还可以查看用于以下方面的python代码: http : //caspian.dotconf.net/menu/Software/SendEmail/
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.