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?
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'
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.
Anything appears in the log file maybe that could help somehow?
Have you also checked on /settings/EMAIL/ ?
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
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?
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?
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 don't have celery set up, and instant emails only occasionally send.
To enter a block of code:
Comments