2221: reviewboard email alert doesn't work at some conditions

eyu****@gmai***** (Google Code) (Is this you? Claim this profile.)
Sept. 6, 2011
Hello:
   I’m building a reviewboard server , my account is eyun, my email in reviewboard is: eyun@xx.com

   When I post an review, if I set the email in admin page using my email, it’ll send me an email;
But when others post review using different account, no emails will send out.
  That is:  if somebody post an review and the email in admin page admin page set is the same as his email, email alert will send out,
Else no email alert send.

   Please tell me what’s the problem, and how can I get rid of this problem.   
 Thanks everybody .
david
#1 david
I think you'll need to look in your log files (both reviewboard and your mail server) to see where things are getting lost.
  • +SetupIssue
#2 Crucer*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Had the same issue, our server doesn't like "sender" so set it to None wherever it was configured in file:

/usr/lib/python2.6/site-packages/ReviewBoard-1.6.3-py2.6.egg/reviewboard/notifications

  • +
    from datetime import datetime
    import logging
    from django.conf import settings
    from django.contrib.sites.models import Site
    from django.core.mail import EmailMultiAlternatives
    from django.core.urlresolvers import reverse
    from django.template.loader import render_to_string
    from djblets.siteconfig.models import SiteConfiguration
    from reviewboard.accounts.signals import user_registered
    from reviewboard.reviews.models import ReviewRequest, Review
    from reviewboard.reviews.signals import review_request_published, \
                                            review_published, reply_published
    from reviewboard.reviews.views import build_diff_comment_fragments
    def review_request_published_cb(sender, user, review_request, changedesc,
                                    **kwargs):
        """
        Listens to the ``review_request_published`` signal and sends an
        email if this type of notification is enabled (through
        ``mail_send_review_mail`` site configuration).
        """
        siteconfig = SiteConfigura