I'm having an interesting problem. I have a client who has their website hosted on one server and their email hosted on google apps. They have a form on their website that takes the content of the form and emails it to an address hosted through google apps.
My code is below and works perfectly when I send it to an email address not hosted with google apps. I can even send to a gmail account, but nothing on google apps. Does anyone have any experience or thoughts on this?
Thanks!
if ( isset($_POST['_submit_check']) ) {
$name = addslashes(htmlentities($_POST['name']));
$email = addslashes(htmlentities($_POST['email']));
$comments = $_POST['comments'];
$message="Name: $name
Email: $email
Comments: $comments";
mail('info@domain.com', 'WMR Contact Us Page', $message, "FROM: $email");
print "<script>opener.location.reload(true)</script>";
}