Mega Code Archive

 
Categories / Python / Network
 

Send an email

import smtplib server = smtplib.SMTP('localhost') server.sendmail('name@website.org', 'anothername@web.org', """To: name@website.org From: anothername@web.org Beware the Ides of March. """) server.quit()