Code : Tout sélectionner
mail("[email protected]", "This is a subject", "This is the mail body");
Notice: Undefined index: post in C:\wamp2\www\pef\liste.php on line 1
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()
voici mon php.ini
Code : Tout sélectionner
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
merci