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 <firstname.lastname@example.org>";
$headers = "Reply-To: email@example.com <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.
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.
Sorry to jump in, but how do some sites manage to get them straight to your inbox if it's client functionality?
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.
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.
Originally Posted by LearningCoder
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.
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.
Hm... i decided to use smtp, thx for tips.