My settings.py
:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = '*******'
DEFAULT_FROM_EMAIL = '[email protected]
But a mail is not sent to the address, in the console the print.html
is printing when I click on send_email
, but it's not sending any email.
I am using Django 1.3.7 and Python 2.6.
I don't know the problem is with the version or some logic problem.
DEBUG = True
in settings.py? Then, can u for example send email using your other local mail clients? Are you certain about your local smtp settings being fine? Are there any errors in the system mail or http logs? – Ravivsettings.py
? – Statutablemail
command for example. Otherwise, another thing to check is to see whether the ajax request even hits the server... ;-/ – Raviv