First time here? Check out the FAQ!
1

What is required for instant email notifications?
 

The cron job is successful in sending daily updates... but no one is receiving "immediate" updates. What is required to enable them?

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)
jimt's avatar
63
jimt
asked 12 years ago

Comments

see more comments

2 Answers

3

Each user should configure the way he prefers to receive email notifications. The way to do it is

user profile overview (at the top left of the screen press on user name) -> subscriptions

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)
alexandros.z's avatar
596
alexandros.z
answered 12 years ago
link

Comments

1

Yes, the default is not to send instant notifications, but it can be changed in the site settings. It is possible that it is worth enabling them by default. What do you guys think?

Evgeny's avatar Evgeny (12 years ago)

Some users have selected immediate notifications, but none are sent through the SERVER_EMAIL configured in settings.py. In addition to subscribing, what additional configuration is necessary to send immediate notifications with 0.7.42?

jimt's avatar jimt (12 years ago)

Nothing else should be needed. Do they have immediate notifications on all posts? Maybe they are filtered out by tags or other settings? The thing is that there are test cases for emails and they all pass, so it should just work. I would suggest in your case - debug with pdb. Is the send_mail function called successfully?

Evgeny's avatar Evgeny (12 years ago)

One more thing that can go wrong - celery setup. Instant emails are sent via celery jobs - to allow asynchronous email sending. By default celery is disabled by CELERY_ALWAYS_EAGER=True and use of the local database as job queue storage. With the default settings instant email should be sent.

Secondly - set up "instant" email in all categories in your subscriptions - at least just for the test.

Evgeny's avatar Evgeny (12 years ago)

I don't have celery set up, and instant emails only occasionally send.

Joseph's avatar Joseph (12 years ago)
see more comments
1

I have these configurations in my settings.py, try to set these fields and see if it worked

SERVER_EMAIL = ''
DEFAULT_FROM_EMAIL = 'your_mail@domain.com'
EMAIL_HOST_USER = 'your_mailbox_name'
EMAIL_HOST_PASSWORD = 'your_mailbox_password'
EMAIL_SUBJECT_PREFIX = '[yourAskbotApp]'
EMAIL_HOST='smtp.your_host.com'
EMAIL_PORT='your_port'
EMAIL_USE_TLS=False
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
 

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)
zaf's avatar
512
zaf
answered 12 years ago
link

Comments

Thanks. I have similar settings, and as I said, they seem to work fine for the cron triggered jobs, but no immediate mail is sent.

jimt's avatar jimt (12 years ago)

Anything appears in the log file maybe that could help somehow?

zaf's avatar zaf (12 years ago)

Have you also checked on /settings/EMAIL/ ?

zaf's avatar zaf (12 years ago)
see more comments