diff options
author | mkanat%bugzilla.org <> | 2009-12-04 15:46:45 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-12-04 15:46:45 +0100 |
commit | d2ee5a822feb4528675d7d0763d231bb7ef9a3ad (patch) | |
tree | 4c00186dcb7626b6f6fdc46b724197b1ce20ce1a /Bugzilla/Mailer.pm | |
parent | 664d731721980b43b796cf100c686df158a1650b (diff) | |
download | bugzilla-d2ee5a822feb4528675d7d0763d231bb7ef9a3ad.tar.gz bugzilla-d2ee5a822feb4528675d7d0763d231bb7ef9a3ad.tar.xz |
Bug 531500: Allow the mailer_before_send hook to modify the arguments passed to Email::Send
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Mailer.pm')
-rw-r--r-- | Bugzilla/Mailer.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 71dc8f1f5..fb9c5a7ca 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -171,7 +171,8 @@ sub MessageToMTA { Debug => Bugzilla->params->{'smtp_debug'}; } - Bugzilla::Hook::process('mailer_before_send', { email => $email }); + Bugzilla::Hook::process('mailer_before_send', + { email => $email, mailer_args => \@args }); if ($method eq "Test") { my $filename = bz_locations()->{'datadir'} . '/mailer.testfile'; |