reviewboard.notifications.email¶
Review Board e-mail module.
- register_email_hook(signal: Signal, handler: EmailHook) None ¶
Register an e-mail hook.
- Parameters:
signal (
django.dispatch.Signal
) – The signal that will trigger the e-mail to be sent. This is one ofreview_request_published
,review_request_closed
,review_published
, orreply_published
.handler (
reviewboard.extensions.hooks.EmailHook
) – TheEmailHook
that will be triggered when an e-mail of the chosen type is about to be sent.
- unregister_email_hook(signal: Signal, handler: EmailHook) None ¶
Unregister an e-mail hook.
- Parameters:
signal (
django.dispatch.Signal
) – The signal that will trigger the e-mail to be sent. This is one ofreview_request_published
,review_request_closed
,review_published
, orreply_published
.handler (
reviewboard.extensions.hooks.EmailHook
) – TheEmailHook
that will be triggered when an e-mail of the chosen type is about to be sent.