Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 30016

How Email Sent In Django

$
0
0

I have setting.py

# Email settings
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'email@gmail.com'
EMAIL_HOST_PASSWORD = 'pass'
EMAIL_PORT = 587

and email method is in admin.py

send_mail(
            'Subject here',
            'Here is the message.',
            'from@gmail.com',
            ['to@gmail.com'],
            fail_silently=False,
        )

but it gives error SMTP AUTH extension not supported by server. How I solve this, working on localhost


Viewing all articles
Browse latest Browse all 30016

Trending Articles