Hi,
I have a form that sends mail which works find when I test on my own email or any email other than the email it's supposed to go to - i.e. the email that's associated with the domain that's sending the mail.
Here's what I'm using:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$recipient = 'me@mydomain.com' . "\r\n";
ini_set("smtp_port", "25");
ini_set("sendmail_from", "mail@mydomain.com");
mail($recipient, ' Enquiry', $message, $headers);
The IT guy says it could be refusing the incoming mail, because it appears to come from itself - does anyone know how to resolve this. I suspect there needs to be some ini setting changed but I don't know what. It's on a Windows server.
Any help is appreciated!