1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-13 20:32:11 +02:00

[ticket/16879] Add events to phpbb_mail()

PHPBB3-16879
This commit is contained in:
3D-I 2021-09-22 22:39:09 +02:00
parent 27289cbfad
commit 19076de94c

View File

@ -1936,7 +1936,7 @@ function phpbb_mail($to, $subject, $msg, $headers, $eol, &$err_msg)
$additional_parameters = $config['email_force_sender'] ? '-f' . $config['board_email'] : '';
/**
* Modify data before sending out emails with the PHP's mail function
* Modify data before sending out emails with PHP's mail function
*
* @event core.phpbb_mail_before
* @var string to The message recipient
@ -1960,7 +1960,7 @@ function phpbb_mail($to, $subject, $msg, $headers, $eol, &$err_msg)
$result = mail($to, mail_encode($subject, ''), wordwrap(utf8_wordwrap($msg), 997, "\n", true), $headers, $additional_parameters);
/**
* Execute code after sending out emails with the PHP's mail function
* Execute code after sending out emails with PHP's mail function
*
* @event core.phpbb_mail_after
* @var string to The message recipient