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 git-svn-id: svn://10.0.0.236/trunk@259172 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
861b25babf
commit
4f5f0d062c
@ -482,6 +482,9 @@ Params:
|
||||
|
||||
=item C<email> - The C<Email::MIME> object that's about to be sent.
|
||||
|
||||
=item C<mailer_args> - An arrayref that's passed as C<mailer_args> to
|
||||
L<Email::Send/new>.
|
||||
|
||||
=back
|
||||
|
||||
=head2 object_before_create
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user