Bonjour à tous !
Voici mon premier post, en espérant que vous puissiez m'aider
Code :
Après envoi :
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
17
18
19
20
21
22
23 include 'phpmailer/class.phpmailer.php'; $mail = new PHPmailer(); $mail->IsSMTP(); $mail->Host='smtp.live.com'; $mail->SMTPAuth=true; $mail->Username='xxx'; $mail->Password='***!'; $mail->Sender='xxx@hotmail.be'; $mail->From='xxx@hotmail.be'; $mail->AddAddress('xxx@hotmail.com'); $mail->AddReplyTo('xxx@hotmail.be'); $mail->Subject='test'; $mail->Body='test'; $mail->SetLanguage('phpmailer.lang-en.php','phpmailer/language/'); if(!$mail->Send()) { echo $mail->ErrorInfo; } else { echo 'Mail envoyé avec succès'; } $mail->SmtpClose(); unset($mail);
The following From address failed: xxx@hotmail.be
En vous remerciant !!
Partager