email send but not delivered through localhost

I need help i.e, how can i send email throgh localhost.
I was change my php.ini file


my php look like this:

<?php ini_set("SMTP",""); $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: [email protected]" . "\r\n"; if(mail("[email protected]","test subject","test body",$headers)) { echo "sent"; } else { echo "failed"; } ?>

and its i’ll be show’s as mail sent but it can’t delivered to that particular address.
How can i avoid this bug

Sponsor our Newsletter | Privacy Policy | Terms of Service