Jump to content

php mail always ending in spam


piphansdk

Recommended Posts

Hi.

 

I searched the entire page for a topic, as i thought it must have ben asked before, but unfortunately i couldn't seem to find anything at all :(

so, i created a perfectly working email, sending as

[email protected]
to: [email protected]
Cc: my own
Bcc: my friends email

every email will recieve the mail, but they all turnsout to be spam/junk, any idea how to fix/byass this? as the email is sending important informations to our fellow schools.

Link to comment
https://forums.phpfreaks.com/topic/281329-php-mail-always-ending-in-spam/
Share on other sites

If it comes from a local machine(127.0.0.1) it's most likely going to end up in spam.

 

If not you need to make sure you're using a valid email address and that you are using the appropriate headers. 

 

http://php.net/manual/en/function.mail.php

 

And check out this relative post that others found useful on stackoverflow:

http://stackoverflow.com/questions/12188334/php-mail-form-sending-to-gmail-spam

Are you hosting this on your local machine or on a cheap shared web host?

Many cheap shared host ips are blacklisted for spam as they attract spammers because there price point.

 

I also found if the email lacks in content it may get sent to the spam.

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.