Jump to content

php mail always ending in spam


Recommended Posts



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

to: someonesmail@something.com
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
Share on other sites

If it comes from a local machine( 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. 




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


Link to comment
Share on other sites

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.

Edited by Evan_McIntosh
Link to comment
Share on other sites

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.

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.