How does askbot send email notifications?
I configured the mailbox in settings.py file for email settings and its working fine.
I was checking the askbot code for email alerts ( send_email_alerts) and how askbot email-alerts work.
But, I did not understand how -- the email-alert concept works!
I have doubts -
Posting the answer Submit-Button takes a lot of time in cases where - there are users subscribed/following that question via email.
- Is this slow because on-submit, the email is not sent asynchronously? (should I use celery for background email sending?)
what is the purpose of that cron job? i.e send_email_alerts?
- What does that cron job do? Should I configure that separately?
thanks.
Comments
I also see such a problem, that answer posting takes really long (up to 15 seconds). After the answer was posted, I see instantly the e-mail, so the e-mail sending process may be the problem. But the comment takes only short time period... what happens when I have 100+ subscriptions for my whole forum..
@Toms Agreed. I think the issue is sending emails, not in the background. So it takes 10secs to submit a new answer, if email-notify was set to instant! @Evgeny should confirm this. I'm waiting for his thoughts.
@pajju how did you setup email notification? Can you provide some information?