import smtplib def sendmail(from,to,message): fromaddr = from toaddr = to msg = message username = 'username' #Maybe create a new email password = 'password' #just for Eleutheria? server = smtplib.SMTP_SSL('smtp.gmail.com:465') server.starttls() server.login(username,password) server.sendmail(fromaddr, toaddrs, msg) server.quit()