Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d2ee5a82
Commit
d2ee5a82
authored
Dec 04, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
664d7317
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Hook.pm
Bugzilla/Hook.pm
+3
-0
Mailer.pm
Bugzilla/Mailer.pm
+2
-1
No files found.
Bugzilla/Hook.pm
View file @
d2ee5a82
...
...
@@ -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
...
...
Bugzilla/Mailer.pm
View file @
d2ee5a82
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment