I'm using php mail function to send email in my project. Emails are coming on gmail,yahoo and other public email services but these are not coming on private domain email ids like [email protected] . Please help me. My code is:
$to = '[email protected]';
$subject = "Subject line of email";
$body = "Body of email";
$header = "From: MYDOMAIN <[email protected]>" . "\r\n";
$header .= "\r\nMIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
mail($to,$subject,$body,$header);