Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-11-2012, 12:10 AM   PM User | #1
Trki
Regular Coder

 
Join Date: Jan 2012
Location: Slovakia
Posts: 108
Thanks: 9
Thanked 0 Times in 0 Posts
Trki is an unknown quantity at this point
Email in spam

Hi, i have a big email... i was sending a lot of emails to my registered users...and now my 'activation emails to registration' are now in SPAM folder... i need to fix that and quickly but i have no idea how...

I tried to add some headers but id didnt help and now i have:

$headers = array();
$headers[] = "MIME-Version: 1.0";
$headers[] = "Content-Type: text/plain;";
$headers[] = "From: domainname.com <email@domain.com>";
$headers[] = "Reply-To: email@otherdomain.sk <email@otherdomain>\r\n";

What should i do to fix that? I googled a lot but i didnt find nothing usefull and i tried a lot ot things. If someone would help me i would be incredible thankfull.

Last edited by Trki; 10-11-2012 at 06:31 PM..
Trki is offline   Reply With Quote
Old 10-11-2012, 12:55 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,752
Thanks: 4
Thanked 2,468 Times in 2,437 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Spam detection and flagging is a client functionality. I don't think there is anyway to get around that. The client will be responsible for removing it as a spam detected item.
Fou-Lu is offline   Reply With Quote
Old 10-11-2012, 01:07 AM   PM User | #3
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 860
Thanks: 68
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
Sorry to jump in, but how do some sites manage to get them straight to your inbox if it's client functionality?

Regards,

LC.
__________________
Carewizard - http://www.carewizard.co.uk

Last edited by LearningCoder; 10-11-2012 at 01:09 AM..
LearningCoder is offline   Reply With Quote
Old 10-11-2012, 01:20 AM   PM User | #4
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,667
Thanks: 46
Thanked 456 Times in 444 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
They probably don't send out large numbers of emails in a short amount of time.

If its yahoo, almost anything can get past their spam filter if you send them some $$$. Perfect advertising revenue platform - email with spam filter that lets the odd one slip through.
__________________
Please don't be rude: Put your php code in [php][/php] tags. It is a sticky topic at the top of the forum and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 10-11-2012, 01:30 AM   PM User | #5
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Quote:
Originally Posted by LearningCoder View Post
Sorry to jump in, but how do some sites manage to get them straight to your inbox if it's client functionality?
Usually you send the emails through an SMTP account on your domain, which fixes most issues. You can also send through a trusted third-party such as SendGrid, Postmark, etc. that use best practices, SPF records, and DKIM to help prevent your messages from being flagged as spam. Of course, if you truly are sending spam you will probably still get flagged. But, the first and easiest step is to simply start sending your email through SMTP.

OP's primary issue is likely that they are trying to send from/reply-to headers that point to different domains. That will often get your emails flagged as spam in my experience.
Inigoesdr is offline   Reply With Quote
Old 10-11-2012, 02:28 AM   PM User | #6
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,752
Thanks: 4
Thanked 2,468 Times in 2,437 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Mailbox is where it always goes; the client end sorts it. Things like a spam folder do not exist; just like whitespace in your code, these categories are made to logically sort for human readability. Reading with an IMAP would let you access each of these "boxes" logically, but they are simply tagged this way.

There are many factors, but ultimately the only thing that you require in your email is a date and a from address. Things like mass receiving, keywords, mismatched from and reply-to domains, and so forth are detected and handled on the client end, not the server end. If the pop/imap whatever detects these things, they may have threshold limitations that then flag as spam. I can't recall which domain it was for, but I did run across one that wouldn't accept any email unless it presented itself with an X-mailer header. Which of course makes no sense whatsoever.
Fou-Lu is offline   Reply With Quote
Old 10-11-2012, 06:31 PM   PM User | #7
Trki
Regular Coder

 
Join Date: Jan 2012
Location: Slovakia
Posts: 108
Thanks: 9
Thanked 0 Times in 0 Posts
Trki is an unknown quantity at this point
Hm... i decided to use smtp, thx for tips.
Trki is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:13 AM.


Advertisement
Log in to turn off these ads.