I am trying to send mails through php script. I am trying with
<?php
$to = 'user@domain.com';
$subject = 'Test subject';
$message = 'Test message';
$from = 'user1@domain.com';
if(mail($to, $subject, $message)){
echo 'Your mail has been sent successfully.';
} else{
echo 'Unable to send email. Please try again.';
}
?>
On execute am getting "Your mail has been sent successfully" message but no message is received in mailbox.
What i have to do further. My mails works on cakephp outlook configuration.But not with PHP. I have seen related questions in stackoverflow but no use :( Please let me know any other ways. Thanks in advance.