Ask Your Question
0

configuring email?

asked 2013-11-05 15:02:36 -0600

mattbenh gravatar image

I configured my settings.py

ADMINS = (
  ('Matthew Harris', 'harris112@aims.info'),
)
... db stuff ...
outgoing mail server settings
SERVER_EMAIL = 'harris112@aims.info'
DEFAULT_FROM_EMAIL = 'harris112@aims.info'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_SUBJECT_PREFIX = ''
EMAIL_HOST='nospam.aims.info'
EMAIL_PORT=''
EMAIL_USE_TLS=False
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

and from that directory I can send an email to myself (admin email) with

from django.core.mail import mail_admins
mail_admins('subject line', 'message text')

but user are still not receiving emails (example creating an account verification email)

The server also sends mail find

mail -v 'harris112@aims.info'

Am I missing something? Any thoughts, ideas, comments, or concerns?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-08 09:51:17 -0600

Evgeny gravatar image

It seems that your last command mail -v uses localhost as the mail server host. Maybe it's different from what you've set with the EMAIL_HOST variable? I.e. there is an issue with credentials?

Another thing that may be happening is that your recipient mail server somehow determines that message sent by Django is spam. To verify that you could look into the mail server log file (possibly /var/log/mail or similar).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-11-05 15:02:36 -0600

Seen: 183 times

Last updated: Nov 08 '13