import smtplib host='mail.mycompany.com' fromAddr='user@example.com' toAddr='info@mycompany.com' text= "This is a test of sending email from within Python." server = smtplib.SMTP(host,25) server.ehlo() server.starttls() server.sendmail(fromAddr, toAddr, text) server.quit()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)