This exact code works in the shell, but does not work in my view and I have no idea why. There is no error message. The email just never gets sent.
from django.core.mail import send_mail
send_mail('Account Created','Your account has been created!',
'info@mysite.com',[request.user.email])
settings.py - email settings
ALLOWED_HOSTS = []
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#SERVER_EMAIL = 'email@gmail.com'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.mailgun.org'
EMAIL_HOST_USER = 'postmaster@mg.mysite.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER