Answer the question
In order to leave comments, you need to log in
How to make an .exe from a .py that sends an email to the mail?
There is such a code
import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.login("from", "pass")
msg=""
file = open("testfile.txt", "r")
for line in file:
message=""
for i in range(0, len(line)):
message = message + chr(ord(line[i]) - 4)
msg+=message+'\n'
print(msg)
server.sendmail("[email protected]", "[email protected]", msg)
server.quit()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question