dans mon fichier php.ini,
je mets localhost comme smtp, pour le port je mets 25 ,
comme je suis sur linux je laisse:
sendmail_path = /usr/sbin/sendmail -t -i
je modifie le code de ma page php en ajoutant:
1 2 3 4
| include("/var/www/html/phpmailer/class.smtp.php");
$mail->SMTPSecure = "ssl";
$mail->SMTPDebug =2;
$mail->Port = 465 |
;
je modifie legerement $mail->Host pour faire:
$mail->Host= "smtp.gmail.com";
j'ai cette fois ci l'erreur:
SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: SMTP -> ERROR: AUTH not accepted from server: SMTP -> NOTICE: EOF caught while checking if connectedThe following From address failed:
moncompte@gmail.com
dans le compte gmail faut il parametrer quelque chose?
Partager