Hi,
I have a simple mail script for sending the results of a contact form:
[blue]$email = "email@homedomain.com";
$subj = "Enquiry from Website";
$header = "Return-Path:me@homedomain.com\r\n";
$header .= "From: " . $from_email . "\r\n"; $header .= "Content-Type: text/html; charset=iso-8859-1;\r\n\r\n";
$content_temp = str_replace("\r\n","<br>",$message);
$content_full = stripslashes($content_temp);
$mesg .= "<html><body>";
$mesg .= "From: " . $sender_name . "<br>";
$mesg .= "____________________________________________________<BR><BR>";
$mesg .= $content_full;
$mesg .= "</body></html>";
// SEND MESSAGE USING PHP mail() COMMAND
mail ($email,$subj,$mesg,$header);
?> [/blue]
Now the $email value is an address from the same domain as the website.
When the script processes, everything looks fine on the webpage, but no mail comes through.
Now if I change the $email value to anything other than an email from it's own domain, the email's come through.
Has anyone heard of anything like this? I've done a search here and the only posts seem to be based on the fact that script doesn't work at all. But this one does as long as the recipient address is not from the same domain.
And yes, I have sent test emails to the address in question and it works instantly.
Thanks in advance
Aaron
I have a simple mail script for sending the results of a contact form:
[blue]$email = "email@homedomain.com";
$subj = "Enquiry from Website";
$header = "Return-Path:me@homedomain.com\r\n";
$header .= "From: " . $from_email . "\r\n"; $header .= "Content-Type: text/html; charset=iso-8859-1;\r\n\r\n";
$content_temp = str_replace("\r\n","<br>",$message);
$content_full = stripslashes($content_temp);
$mesg .= "<html><body>";
$mesg .= "From: " . $sender_name . "<br>";
$mesg .= "____________________________________________________<BR><BR>";
$mesg .= $content_full;
$mesg .= "</body></html>";
// SEND MESSAGE USING PHP mail() COMMAND
mail ($email,$subj,$mesg,$header);
?> [/blue]
Now the $email value is an address from the same domain as the website.
When the script processes, everything looks fine on the webpage, but no mail comes through.
Now if I change the $email value to anything other than an email from it's own domain, the email's come through.
Has anyone heard of anything like this? I've done a search here and the only posts seem to be based on the fact that script doesn't work at all. But this one does as long as the recipient address is not from the same domain.
And yes, I have sent test emails to the address in question and it works instantly.
Thanks in advance
Aaron