Python e-mailing? Easiest way?
How can I send an e-mail from Python without any third 开发者_C百科party programs?
Use the python email and smtplib modules. Examples: http://docs.python.org/library/email-examples.html
smtplib
You need an SMTP server to send mail with, of course.
Python comes with an email module: http://docs.python.org/library/email-examples.html
Note though that you still need to contend with a host of emailing issues unrelated to Python, like setting up your SMTP server. I hope you aren't intending to spam.
精彩评论