good day.,
I have problem with php mail function…i get success message by operating this code on localhost… but I cannot recieve mail in my gmail ID as specified in the code … neither I get the mail in MS outlook… I have also made setting of outlook … what should I do … kindly help me … below is the code that I uses
[php]<?php
$to = "[email protected]";
$subject = “Test mail”;
$message = “Hello! This is a simple email message.”;
$from = "[email protected]";
$headers = “From:” . $from;
if(mail($to,$subject,$message,$headers)){
echo “success!”;
}else {echo “error”;}
?> [/php]