> >>> from django.core.mail import send_mail
> >>> send_mail('subject is', 'message is and is not 12342', '
fromem...@gmail.com', ['sen...@gmail.com'])
> 1
> >>>
>
> I am receiving this email in my gmail account, incidently which is the
same gmail account used for the smtp, but the from email is
Hi,
I have set up smtp with a gmail account. When I use send_mail the from
email is not showing up in the account receiving the email.
Django settings.py
# DEFAULT_FROM_EMAIL = 'sen...@gmail.com'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
2 matches
Mail list logo