import smtplib
my_email = "[email protected]"
password = "sfuyyudfgyudgfydsg"
with smtplib.SMTP('smtp.gmail.com') as connection:
connection.starttls()
connection.login(user=my_email, password=password)
connection.sendmail(
from_addr=my_email,
to_addrs="[email protected]",
msg="Subject: Checking out automated mail in Python\n\nThis is
the mail body."
)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAA5HNVr5WuHWM_amYZFCbCGEuAc13vNLhPubK-3t1YXPNyL%3DnA%40mail.gmail.com.