Код: Выделить всё
server = smtplib.SMTP_SSL('smtp.mail.com', 587)
server.login("[email protected]", "password")
server.sendmail(
"[email protected]",
"[email protected]",
"email text")
server.quit()
Подробнее здесь: https://stackoverflow.com/questions/577 ... number-ssl