import smtplib
my_email = "some...@gmail.com"
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,
p name) and click generate.
>>>> 6. Copy the app password as it's view once and cannot be viewed after the
>>>> pop up is closed.
>>>> 7. Go to your settings.py file and replace your actual email password with
>>>> the generated app pas
Google hast stopped less secure apps, so u cant send email messages anymore
with ur email and password, U will have to find some other way of sending
mails.
On Wed, 9 Nov, 2022, 16:26 peteru mimo, wrote:
> Good day team,
>
> I have been facing this challenge in sending mail in django
>
> here
3 matches
Mail list logo