Jump to content

HELP! mail() function is being labeled as spam!


cylode

Recommended Posts

Hi there,

 

I'm in a rather desperate situation and need some help. I've recently started a PHP-based website that seems to be taking off quite a bit. It has a user registration process in which users confirm their accounts via an email. Currently, 25% of these emails are not delivered (or received), primarily to the following account types:

 

*aol.com

*aim.com

*sbcglobal.com

*comcast.net

 

And occassionally Gmail and yahoo.

 

The site uses mail() to send them out, but the mail relay server is the same one used by all other clients my hosting company has (GoDaddy).

 

This means that when I send an email, it says the "From: " is the email address I choose, but the "Mailed-by:" says some nasty long name like "k2.smtp.secureserver.net"

 

Some email recipients report no problems at all. I thought one way to solve the problem would be to use some kind of SMTP-authenticated class library such as PHPMailer. I used that, and it actually resulted in even more emails being labeled as spam. I'm really confused.

 

Anyone know how to get around this issue? I've email GoDaddy plenty of times and they don't even bother responding.

 

Thanks guys,

 

Jason

It's always best to specify as many headers as you can in the mail, so the servers can collect more data and more accurately determine if it truly is spam.  One issue that has been known to work for a few hosts is adding:

 

"X-Mailer: PHP/" . phpversion();

To the headers list.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.