Bonjour,
J'utilise PHPMailer pour envoyer des emails.
avec isMail() :
J'envois les email a 2 personne avec :
Le email est envoyer, je le recois quasie instantanément sur hotmail, mais rien avec mon autre adresse.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 $mail->addAddress($cli_Courriel, ''); //blablabla@hotmail.com $mail->addAddress($cli_CourrielAdmin, ''); //abc@def3.com
Les adresses emails problématiques sont du genre : abc@def3.com
Est-ce que le problème vient du 3 dans le nom de domain ?
avec isSMTP() :
j'obtient :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 $mail = new PHPMailer(true); $mail->SMTPDebug = 2; $mail->isSMTP(); $mail->Host = 'smtp2.xittel.net'; $mail->Port = '587'; /*$mail->SMTPSecure = 'tls';*/ // sur thunderbird : aucune sécurité de connexion $mail->SMTPAuth = true; //sur thunderbird : mot de passe non sécuriser $mail->Username = 'xxxxxxx'; $mail->Password = 'xxxxxxx'; $mail->CharSet = 'UTF-8'; $mail->Encoding = 'base64';
Merci2019-03-04 17:03:43 SERVER -> CLIENT: 220 smtp2.xittel.net
2019-03-04 17:03:43 CLIENT -> SERVER: EHLO www.psn3.com
2019-03-04 17:03:43 SERVER -> CLIENT: 250-smtp2.xittel.net Hello xpanel2.xittel.net [205.151.16.23]250-SIZE 62914560250-8BITMIME250-PIPELINING250-AUTH LOGIN250-STARTTLS250 HELP
2019-03-04 17:03:43 CLIENT -> SERVER: STARTTLS
2019-03-04 17:03:43 SERVER -> CLIENT: 220 TLS go ahead
SMTP Error: Could not connect to SMTP host.
2019-03-04 17:03:43 CLIENT -> SERVER: QUIT
2019-03-04 17:03:43
2019-03-04 17:03:43
SMTP Error: Could not connect to SMTP host.
Partager