Hai,
I need help i.e, how can i send email throgh localhost.
I was change my php.ini file
SMTP:mail.server.com
SMTP-PORT:25
my php look like this:
<?php ini_set("SMTP","mail.serviceprovider.com"); $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