Can't send mail to abc@gmx.com
but my php code is working on another email like abc@gmail.com
and abc@mailinator.com
. I don't have solution of this please help me
App::uses('CakeEmail', 'Network/Email');
$To='abc@gmx.com';
$email->to($To);
$email->from($From);
$email->subject($Subject);
$email->emailFormat('html');
$email->attachments($attachment) ;
$email->template($template);
$email->layout = 'default';
var_dump($email->send($message));
if ($email->send($message))
{
return true;
}
else
{
return false;
}
Please check this code and check whether you are receiving mail from both the email id's
<?php
$to = "abc@gmx.com";
$subject = "Provide your subject matter";
$body = "This is test message!";
$headers = "From: sender@example.com" . "\r\n" .
"CC: abc@gmail.com";
mail($to,$subject,$body,$headers);
?>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.