Bonjour tout le monde,

Je suis entrain de faire un projet sur html php, j'ai un petit soucie d'envoi d'un mail à partir de ma page contact, le code php que j'ai, est bien fais, y'a pas d'erreur, le voici:
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
<?php           
	if(isset($_POST) && isset($_POST['mail']) && isset($_POST['msg'])){
		extract($_POST);
		if(!empty($mail) && !empty($msg)){
 
			$to = "mon_mail@hotmail.fr";
			$sujet = "Contact HomesForDogs";		
			$msg = addslashes($msg);
			$message = "Un nouveau mail qui vient d'arriver \n
			E-mail: $mail \n
			Message: $msg";
			$header = "From: $mail";
			mail($to,$sujet,$message,$header);
		}
	}
L'erreur que je reçoit est celle ci: Warning: mail(): Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set() in C:\wamp\www\HomesForDogs91\p_contact.php on line 13

La ligne 13 fait réference à cette ligne:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
mail($to,$sujet,$message,$header);
J'utilise wampserver 2.4, je travaille en local, mon fichier php.ini contient ça:
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = you@yourdomain

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

J'ai cherché d'ici et de là en vain, je n'arrive pas à envoyer de mail à partir de ma fichier contact

Si vous avez des conseils, ils seront les bien venus.

Merci d'avance

Codrialement