Sending Some E-Mail : Email « Network « Python
- Python
- Network
- Email
Sending Some E-Mail
fromAddress = '[email protected]'
toAddress = '[email protected]'
msg = "Subject: Hello\n\nThis is the body of the message."
import smtplib
server = smtplib.SMTP("localhost", 25)
server.sendmail(fromAddress, toAddress, msg)
Related examples in the same category