I tried to send an email via Python, but I don't get any mail. I have checked the spam folder but still no results.
My code:
import smtpd
connection = smtpd.SMTP("smtp.gmail.com")
connection.starttls()
connection.login(user=my_email, password=password)
connection.sendmail(from_addr=my_email, to_addrs=email, msg="Hello")
connection.close()
I get no errors, but no mail is delivered.