0

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 info@mydomain.com . Please help me. My code is:

$to = 'email@mydomain.com';
$subject = "Subject line of email";
$body = "Body of email";
$header = "From: MYDOMAIN <no-reply@mydomain.com>" . "\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);
Vivacity InfoTech
  • 465
  • 3
  • 11
  • 25

0 Answers0