Utilities for sending e-mail messages.
- build_recipients(user, review_request, extra_recipients=None, limit_recipients_to=None)¶
Build the recipient sets for an e-mail.
By default, the user sending the e-mail, the review request submitter (if they are active), all active reviewers, and all active members of review groups will be recipients of the e-mail.
limit_recipients_toparameter is provided, the given
userand the review request submitter (if active) will still be recipients of the e-mail, but all reviewers and members of review groups will not. Instead, the recipients given in
limit_recipients_towill be used.
user (django.contrib.auth.models.User) – The user sending the e-mail.
review_request (reviewboard.reviews.models.ReviewRequest) – The review request the e-mail corresponds to.
- Return type
- get_email_addresses_for_group(group, review_request_id=None)¶
Build a list of e-mail addresses for the group.
- recipients_to_addresses(recipients, review_request_id=None)¶
Return the set of e-mail addresses for the recipients.
- send_email(email_builder, **kwargs)¶
Attempt to send an e-mail, logging any exceptions that occur.