refactored send_email_alerts similarly to the master branch
Merge branch 'merge1' of github.com:ASKBOT/askbot-devel into merge1