email script for bellsouth

I created a script to send an email to 3 recipients: a,, and a domain. Two of the recipients receive the email without a problem but the address says that she has not received anything. Is there something that I am missing in my script or is there some peculiarity with bellsouth that is preventing my email from transmitting?

The relevant code is attached.
/* Email the recipients. */
$to  = ",,";
// Additional headers
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= 'From:' . "\r\n";
$headers .= 'Reply-To:' . "\r\n";
$subject = 'A test email';
$message = 'A test email was transmitted';
// execute the mailing function
mail($to, $subject, $message, $headers);

Open in new window

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
It is likely that the failure of the email to the BellSouth user is entirely because of the email filtering by BellSouth.  If that is the case, there is nothing you can do with your form that will overcome it.  While we have given you a few suggestions, it is in the end their [Bellsouth] choice.
Dave BaldwinFixer of ProblemsCommented:
I would try sending an individual email to "".  Also note that your message is actually "text/plain" and not "text/html".  

And that the 'Reply-to" is different from the "From:" and from a different domain is one of the signs of 'phishing' emails.  Mail servers spend most of their time blocking spam and anything that looks a little like spam is often rejected.  And no, it is not your choice.  Spam is what the receiver says it is.
lepirtleAuthor Commented:
Hi Dave,
Thanks for the information.

I will try to send to an individual user. That is one idea that I didn't test since having my own address allowed me to ascertain that the email was actually being sent. Unfortunately I must wait till tomorrow to find if that user actually receives it but I will give your idea a try.

My original email was html but I forgot to change the type when I published the script to Experts Exchange but I will change it when I send the test to the individual user that you suggest above.

As for the 'Reply-To' and 'From ' question: the reason for that is that the script actually resides on my server (hosted by godaddy) and not the bellsouth user's server. (I volunteer as webmaster for the not-for-profit). When I couldn't get my script to work using only a 'From' header I thought adding a 'Reply-to' header would be a workaround for a potential phishing filter that bellsouth might have in place. Assuming that is the problem, might you have another suggestion as a workaround? It would seem to me not to be that uncommon for mailing scripts on non-bellsouth servers to be emailing bellsouth customers.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Ray PaseurCommented:
You are probably hitting the spam filters (really hard if your email is coming from GoDaddy).  A better solution would be to use a service like Constant Contact.  They are reliable, embarrassingly inexpensive and a far better solution than trying to live day-to-day with the thankless task of making PHP mail() commands work!  Trust me, I've been there on behalf of a non-profit.  Everyone, especially me, liked Constant Contact.
Dave BaldwinFixer of ProblemsCommented:
I would eliminate the "Reply-To", it is more likely causing it to look like a 'phishing' email.  I know that Spamassassin on one of my hosting accounts doesn't like the Godaddy email server that shows in emails from hosting accounts there.  Also, your "From" address should be an email account on your hosting so that when it is checked by outside mail servers, it shows the right values and IP addresses.  Some mail servers will bounce or dump email that is sent from an IP address that does not match the 'legitimate' mail server for that domain.

And you thought email was easy...
Ray PaseurCommented:
lepirtleAuthor Commented:
Hi Dave and Ray,
I truly appreciate your insights and experience with the mail server anti-phishing routines and would be happy to accept your recommendations but the email that I am attempting to send to the bellsouth recipient contains the results of a form which resides on my godaddy server. Basically a user completes a form (sitting on my godaddy server) and the results of the validated data is processed by my php page and then emailed to the bellsouth user and other non-bellsouth users. That is why I can't (or at least I don't think I can in this case anyway) use something like 'Constant Contact' to complete the piece of the puzzle by emailing the results of my form to the bellsouth recipient.
Ray PaseurCommented:
I'll sign off on this question now.  You're involved in an application that has failed for thousands of people before you because of perceived expectations and limitations and "I don't think" issues.  I strongly recommend that you hire a professional developer to help with this, and I urge you to have a substantial development budget.  It will be expensive or successful, but not both.  Good luck and godspeed, ~Ray
lepirtleAuthor Commented:
Thanks Dave and Ray. I will consider the issue closed.
lepirtleAuthor Commented:
This is an update to anyone who might have had a similar situation. Bottom line is that it was, indeed, a Bellsouth filter that was preventing my email from being received by users. After speaking at length with a Bellsouth (AT&T) representative, I was provided a form to complete. After waiting 4 weeks they finally adjusted the filters to allow my email script to transmit to the users. No adjustment to my script was required.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.