I have written a script for mail. but it shows :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:\xampp\htdocs\TEST\mail.php on line 35. my php.ini file has: SMTP ="localhost" smtp_port ="25" sendmail_from=sanjay@localhost For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t" Plz help me to to resolve this problem.
Are you sure you have a mail server installed? The WAMP or XAMPP package does not install a mail server. A mail server is different from your apache or mysql server. It has to be installed separately. I suggest you install a MailEnable Administrator standard edition [FREE]