Setting.py-
EMAIL_BACKEND = "mailer.backend.DbBackend"
EMAIL_SUBJECT_PREFIX = "[.....]"
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_PASSWORD = 'tester@@abcd'
EMAIL_HOST_USER = 'tester.abcd@gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'tester.abcd@gmail.com'
DEFAULT_ADMIN_EMAIL = 'tester.abcd@gmail.com'
TEMPORARY_CC_EMAIL = 'tester.abcd@gmail.com'
CONTACTUS_EMAIL = 'tester.abcd@gmail.com'
JOBAPPLY_EMAIL = 'tester.abcd@gmail.com'
urls.py:
urlpatterns = patterns('django.contrib.auth.views',
url(r'^password-reset/$', 'password_reset', {
'template_name': 'profiles/password_reset_form.html',
'password_reset_form': PassResetForm
}, name='password-reset'),
url(r'^password-reset-process/$', 'password_reset_done', {
'template_name': 'profiles/password_reset_done.html',
}, name='password-reset-done'),
url(r'^password-reset-confirm/(?P<uidb36>[0-9a-zA-Z]{1,13})-(?P<token>.+)/$',
'password_reset_confirm',
{'template_name': 'profiles/password_reset_confirm.html',},
name='password-reset-confirm'),
url(r'^password-reset-complete', 'password_reset_complete', {
'template_name': 'profiles/password_reset_complete.html',
}, name='password-reset-complete'),
这是我的代码,当我输入我的邮件并单击提交时,它正确重定向到下一页但邮件没有发送,这个代码有什么 pblm