[PHPMailer] Warning preg_match: internal pcre_fullinfo()
Bonjour,
J'utilise PHPmailer et quand j'execute le code suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| $mail = new PHPmailer();
$mail->IsSMTP();
$mail->IsHTML(true);
$mail->Host='smtp.truc.com';
$mail->From=$from['mail'];
$mail->FromName = $from['name'];
$mail->AddReplyTo($from['mail']);
for ($i=0;$i<count($to);$i++) {
$mail->AddAddress($to[$i]['mail'], $to[$i]['name']);
}
for ($j=0;$j<count($cc);$j++) {
$mail->AddCC($cc[$j]['mail'], $cc[$j]['name']);
}
$mail->Subject=$subject;
$mail->Body=$body;
if(!$mail->Send()){
echo $mail->ErrorInfo;
}
$mail->SmtpClose();
unset($mail); |
Il m'affiche les erreurs suivantes :
Citation:
Warning: preg_match: internal pcre_fullinfo() error -3 in /var/www/html/mysite/phpmailer/class.phpmailer.php on line 1157
Warning: preg_match: internal pcre_fullinfo() error -3 in /var/www/html/mysite/phpmailer/class.phpmailer.php on line 1160
Warning: preg_match: internal pcre_fullinfo() error -3 in /var/www/html/mysite/phpmailer/class.phpmailer.php on line 1157
Warning: preg_match: internal pcre_fullinfo() error -3 in /var/www/html/mysite/phpmailer/class.phpmailer.php on line 1160
Warning: preg_match: internal pcre_fullinfo() error -3 in /var/www/html/mysite/phpmailer/class.phpmailer.php on line 1157
Warning: preg_match: internal pcre_fullinfo() error -3 in /var/www/html/mysite/phpmailer/class.phpmailer.php on line 1160
Warning: preg_match_all: internal pcre_fullinfo() error -3 in /var/www/html/mysite/phpmailer/class.phpmailer.php on line 1173
Problème non bloquant puisque le mail est bien envoyé mais je voulais juste savoir d'où vienent ces warning.
Merci d'avance,
Devether