mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* fixed multiple mail recipients when using admin mailer function
It resulted in mail being sent to all users multiple times..
This commit is contained in:
parent
693e201900
commit
2010094f83
@ -800,6 +800,7 @@ function getWorldName($id)
|
|||||||
*/
|
*/
|
||||||
function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true)
|
function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true)
|
||||||
{
|
{
|
||||||
|
/** @var PHPMailer $mailer */
|
||||||
global $mailer, $config;
|
global $mailer, $config;
|
||||||
if(!$mailer)
|
if(!$mailer)
|
||||||
{
|
{
|
||||||
@ -807,6 +808,9 @@ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true)
|
|||||||
$mailer = new PHPMailer();
|
$mailer = new PHPMailer();
|
||||||
$mailer->setLanguage('en', LIBS . 'phpmailer/language/');
|
$mailer->setLanguage('en', LIBS . 'phpmailer/language/');
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$mailer->clearAllRecipients();
|
||||||
|
}
|
||||||
|
|
||||||
$signature_html = '';
|
$signature_html = '';
|
||||||
if(isset($config['mail_signature']['html']))
|
if(isset($config['mail_signature']['html']))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user