Send an email
import smtplib server = smtplib.SMTP('localhost') server.sendmail('[email protected]', '[email protected]', """To: [email protected] From: [email protected] Beware the Ides of March. """) server.quit()