Jump to content

Recommended Posts

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: [email protected] <Endless Summers Maui>\r\n";
$headers .= "Reply-To: [email protected]\r\n";
$headers .= "Return-Path: [email protected]\r\n";
$headers .= "CC: [email protected]\r\n";
$headers .= "BCC: [email protected]\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

Link to comment
https://forums.phpfreaks.com/topic/78832-not-reciving-emails-to-certain-domains/
Share on other sites

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.

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

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.