diff --git a/system/functions.php b/system/functions.php index 23e2d219..12aea27b 100644 --- a/system/functions.php +++ b/system/functions.php @@ -800,6 +800,7 @@ function getWorldName($id) */ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true) { + /** @var PHPMailer $mailer */ global $mailer, $config; if(!$mailer) { @@ -807,6 +808,9 @@ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true) $mailer = new PHPMailer(); $mailer->setLanguage('en', LIBS . 'phpmailer/language/'); } + else { + $mailer->clearAllRecipients(); + } $signature_html = ''; if(isset($config['mail_signature']['html']))