First time here? Check out the FAQ!
0

configuring email?
 

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
mattbenh's avatar
15
mattbenh
asked 11 years ago

Comments

see more comments

1 Answer

0

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).

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

see more comments