Bonjour à tous !!
Voilà, j'ai une erreur qui survient qd je veux tester la fonction mail() en local. Voici le message d'erreur :
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\MONSITE\monfichier.php on line 101
Pourtant, j'ai bien configuré mon fichier php.ini comme ceci :
[mail function]
; For Win32 only.
SMTP = smtp.free.fr
smtp_port = 25
; For Win32 only.
sendmail_from = moi@free.fr
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;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 =
Pour info, j'utilise WAMPSERVER 2.0 ss Windows XP Pack 3
Merci pour votre aide
Partager