Phpmailer 5.1
NDOUKI
Messages postés
110
Date d'inscription
Statut
Membre
Dernière intervention
-
nag95 Messages postés 35 Statut Membre -
nag95 Messages postés 35 Statut Membre -
Bonsoir,
voici mon problème: je ne parviens pas à envoyer mon mail pourtant mon code semble clair.
si quelqu'un a une solution svp help
voici mon code
$mail = new PHPmailer();
$mail->IsSMTP();
$mail->Host='smtp.gmail.com';
$mail->SMTPDebug = 0;
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = "[email protected]";
$mail->Password = "xxxxx";
$mail->From='[email protected]';
$mail->AddAddress('[email protected]');
$mail->AddReplyTo('[email protected]');
$mail->Subject='sujet test';
$mail->Body='texte test';
if(!$mail->Send()){
echo $mail->ErrorInfo;
}
else{
echo 'Mail sent';
}
$mail->SmtpClose();
unset($mail);
voici mon problème: je ne parviens pas à envoyer mon mail pourtant mon code semble clair.
si quelqu'un a une solution svp help
voici mon code
$mail = new PHPmailer();
$mail->IsSMTP();
$mail->Host='smtp.gmail.com';
$mail->SMTPDebug = 0;
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = "[email protected]";
$mail->Password = "xxxxx";
$mail->From='[email protected]';
$mail->AddAddress('[email protected]');
$mail->AddReplyTo('[email protected]');
$mail->Subject='sujet test';
$mail->Body='texte test';
if(!$mail->Send()){
echo $mail->ErrorInfo;
}
else{
echo 'Mail sent';
}
$mail->SmtpClose();
unset($mail);
A voir également:
- Phpmailer 5.1
- Ultimate windows tweaker 5.1 - Guide
- Photofiltre 5.1 gratuit - Télécharger - Retouche d'image
- Chatgpt 5.1 - Guide
- Barre de son jbl 5.1 problème ✓ - Forum Enceintes / HiFi
- Version 5.1 ou 2.0 - Forum TV & Vidéo