I am using smtplib to send a copy of my friends history to myself, however it sends nothing to me just a plain email, anyone know what the problem is?
with open ("History.txt", ) as myfile:
data=myfile.readlines()
data = str(data)
data = "'" + data + "'"
import smtplib
server=smtplib.SMTP('smtp.gmail.com',587)
server.starttls()
server.login('myemail','mypassword')
server.sendmail('myemail', 'myotheremail', data)