I am using mail() function in cakephp 2 to send the mail in the server. The mail is not delivered.
PHP - 5.6
Code:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers.= "From: " . $from . "\n";
$mail = mail($to, $subject, $message, $headers);
echo 'Mailer error: ' . $mail->ErrorInfo;
There is no error message is showing. The mail sending status is true. but mail is not receiving.