Ask Your Question

What is required for instant email notifications?

asked 2012-05-08 05:12:59 -0500

jimt gravatar image

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-05-08 06:45:23 -0500

alexandros.z gravatar image

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

edit flag offensive delete link more



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 gravatar image Evgeny  ( 2012-05-08 09:19:01 -0500 )edit

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

jimt gravatar image jimt  ( 2012-05-08 16:07:48 -0500 )edit

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 gravatar image Evgeny  ( 2012-05-08 16:19:51 -0500 )edit

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 gravatar image Evgeny  ( 2012-05-08 16:53:14 -0500 )edit

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

Joseph gravatar image Joseph  ( 2012-07-26 19:29:30 -0500 )edit

answered 2012-05-08 16:20:22 -0500

zaf gravatar image

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

EMAIL_HOST_USER = 'your_mailbox_name'
EMAIL_HOST_PASSWORD = 'your_mailbox_password'
EMAIL_SUBJECT_PREFIX = '[yourAskbotApp]'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

edit flag offensive delete link more


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 gravatar image jimt  ( 2012-05-08 16:22:10 -0500 )edit

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

zaf gravatar image zaf  ( 2012-05-08 16:30:06 -0500 )edit

Have you also checked on /settings/EMAIL/ ?

zaf gravatar image zaf  ( 2012-05-08 16:33:14 -0500 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2012-05-08 05:12:59 -0500

Seen: 1,335 times

Last updated: May 08 '12