Skip to content

Instantly share code, notes, and snippets.

import subprocess, smtplib, re
def send_mail(email,password,message):
server = smtplib.SMTP("smtp.gmail.com" , 587)
server.starttls()
server.login(email,password)
server.sendmail(email,email,message)
server.quit()