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?
The cron job is successful in sending daily updates... but no one is receiving "immediate" updates. What is required to enable them?
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
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?
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.
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'
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-05-08 05:12:59 -0600
Seen: 1,475 times
Last updated: May 08 '12