0
Exists some way to send fixers .txt
by python smtplib?
This is my current code:
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(Sender, Password_SMTP)
server.ehlo()
body = 'Bump request was successful.'
subject = 'Bump request was successful'
message = 'Subject: {}\n\n{}'.format(subject, body)
server.sendmail(Sender, Reciever, message)
server.quit()
What would this function
file
in the third row?– Woss
Actually, there were two problems in the first answer, first I was thinking of Python2.7 which uses read, which was discontinued in Python3, which uses the open! Second, I had to create the msg, which was corrected in the answer above! Sorry I was using the smartphone and in a hurry I forgot the details.
– weltonvaz