Salut les forumeurs est ce que quel un peu m’aider :=) j’ai une erreur de congigutaion serveur, je n’arrive pas a envoyer mon email. Voici mon programme avec l’erreur qui s’affiche

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
<?php
$destinataire = "testing1@gmail.com";
$expediteur   = "testing2@yahoo.fr";
$reponse      = $expediteur;
 
echo "Ce script envoie un mail au format HTML à $destinataire";
$codehtml=
"<html><body>" .
"<h1>Test Email</h1>".
"<b><u>Ceci est un document HTML</u></b><br>" .
"Avec differentes tailles de caractères et <font color=\"red\">couleurs</font>" .
"</body></html>";
mail($destinataire,
     "Email au format HTML",
     $codehtml,
     "From: $expediteur\r\nReply-To: $reponse\r\nContent-Type: text/html; charset=\"iso-8859-1\"\r\n");
?>
message d'erreur

Ce script envoie un mail au format HTML à testing1@gmail.com
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\email\formmail.php on line 16