Forum Moderators: coopster
The basic syntax of the
mail()function is easy:
mail($to, $subject, $message, 'From: me@example.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 D:\Program Files\xampp\htdocs\mailer\sendemail.php on line 35
It's quite normal that there is no SMTP server on a Windows machine. You may need to specify your provider's information in php.ini. So, please re-read eelixduppy's post...
[edited by: RonPK at 7:09 am (utc) on July 30, 2007]