Essentially, it will send to me and all my co-workers, but not to any other email address'
here is my code:
Code: Select all
<?php
// message
$message = '
Dear whomever,' . "\r\n\r\n" .
'this is my letter' . "\r\n\r\n" .
'Thank you,' . "\r\n\r\n" . $_POSTї'name'] . "\r\n" . $_POSTї'city'] . ", " . $_POSTї'province'] . "\r\n" . $_POSTї'email'];
// headers
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Email <email@email.com>' . "\r\n";
$headers .= 'From:"' . $_POSTї'name'] . '"<' . $_POSTї'email'] . ">" . "\r\n";
// Mail it
mail('email@email.com', 'subject', $message, $headers);
?>The TO: email will be hard coded when it is finished, but it will not to some who's email hosted at our ISP.
My first thought is that this may be a problem with our IPS's sendmail. I have received everything when i send it to my email that they host. and then the email is received perfectly, headers in tact. but i receive nothing when i am sending my other email address', including hotmail, gmail and my person domain.
i'm wondering if anyone has experienced this same problem, and if so, how did you solve it?