I am getting error in php mail...

Hello friends,

I am getting error in php mail() .

Script:

<?php $to = "[email protected]"; $subject = "My subject"; $txt = "Hello world!"; $headers = "[email protected]"; mail($to,$subject,$txt,$headers); ?>

Error:
Warning: mail() [function.mail]: “sendmail_from” not set in php.ini or custom “From:” header missing in C:\xampp\htdocs\mail.php on line 8.

If any one can have any idea regarding this please help me…

Sponsor our Newsletter | Privacy Policy | Terms of Service