When the view that sends the email is used nothing happens, i then entered send_mail(...) into the python shell and it returned 1 but i didn't receive any emails.
This is my settings.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'Password1234!'
EMAIL_USE_TLS = True
This is the view:
def send_email(request):
send_mail('Request Callback', 'Here is the message.', '[email protected]',
['[email protected]'], fail_silently=False)
return HttpResponseRedirect('/')