cooldude832 Posted November 25, 2007 Share Posted November 25, 2007 I have this mailing snippette I wrote <?php $to = $fields['email']; $subject = "New Reservation Request at endlesssummermaui.com."; $message = $fields['name'].", \nThank you for your room request at endlesssummermaui.com\n You can retrive the status of your reservation by going to "; $message .=" http://www.endlesssummermaui.com/thanks.php?id=".$s_id."&eid=".$eid."\n"; $message .=" If there are any issues with your request we will attempt to contact you with the information provided.\n \n Thank You,\n Endless Summer Maui"; $headers = "From: webmaster@endlesssummermaui.com <Endless Summers Maui>\r\n"; $headers .= "Reply-To: webmaster@endlesssummermaui.com\r\n"; $headers .= "Return-Path: webmaster@endlesssummermaui.com\r\n"; $headers .= "CC: webmaster@endlesssummermaui.com\r\n"; $headers .= "BCC: webmaster@endlesssummermaui.com\r\n"; if(mail($to,$subject,$message,$headers)) { header("location: ".THANK_PAGE."?id=".$s_id."&eid=".$eid); } else{ echo "To: ".$to."<br />Subject: ".$subject."<br />Headers: ".$headers."<br /><br />".$message; } } else{ header("location: ".BOOK_PAGE); } ?> It will send find to some domains, but some big ones like aol.com don't even put it in spam any ideas? Its not dying to the else echo the message its going to the new header location, but the mail never comes Quote Link to comment Share on other sites More sharing options...
paradigmapc Posted November 25, 2007 Share Posted November 25, 2007 I had a similar problem once. I had to add an X-Mailer header with my php version. Try adding this: $headers .= "X-Mailer: PHP/" . phpversion()."\r\n"; I think the X-Mailer header is is a common header used by mail clients to indicate the mail client that sent the mail. I don' know much about the php mail function so this might not work. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 25, 2007 Author Share Posted November 25, 2007 didn't hurt it, but didn't help it. I tested it on a different domain and it works fine, its just this domain, I think the issue is outside of php as it is domain dependent (similar php versions). Quote Link to comment Share on other sites More sharing options...
runnerjp Posted November 25, 2007 Share Posted November 25, 2007 yes i have had same problem...switched domains about a month back and have had no problems with it lol Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 25, 2007 Author Share Posted November 25, 2007 The server it works on does a full listing of the domains stuff (my name, address and so forth), the other has like no info on it, and I think aol being an american company could be required to produce emails for court cases thus they need to know who is sending Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted November 26, 2007 Share Posted November 26, 2007 To the best of my knowledge, receiving email servers are not yet checking domain registration information. However, your email will get rejected if your DNS records have problems - check your domain at www.dnsreport.com - or you are on a shared host and others have gotten the mail server banned due to spamming. Each of the major ISP's have a "postmaster" web site with information concerning getting mail sent to them accepted and accepted and not voted as spam/junk. You can also submit your mail server/domain to them to be "white" listed, if all else fails. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 26, 2007 Author Share Posted November 26, 2007 yeah its a shared server, and i think that is the issue Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted November 26, 2007 Share Posted November 26, 2007 If the endlesssummermaui.com domain is the actual domain, there are 2-3 mail related problems with the DNS records for that domain that would get an ISP like AOL to reject mail from the mail server. The mail server for that domain did not appear on any of the common spam databases, but that does not mean that AOL is not banning it based on its' own record of abuse. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 26, 2007 Author Share Posted November 26, 2007 its the first time the server has ever sent mail the domain is only a few weeks old. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.