Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Email in spam

  1. #1
    Regular Coder
    Join Date
    Jan 2012
    Location
    Slovakia
    Posts
    111
    Thanks
    9
    Thanked 0 Times in 0 Posts

    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.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    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.

  • #3
    Regular Coder LearningCoder's Avatar
    Join Date
    Jan 2011
    Location
    The Pleiades
    Posts
    922
    Thanks
    76
    Thanked 29 Times in 29 Posts
    Sorry to jump in, but how do some sites manage to get them straight to your inbox if it's client functionality?

    Regards,

    LC.
    Last edited by LearningCoder; 10-11-2012 at 01:09 AM.

  • #4
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,313
    Thanks
    58
    Thanked 525 Times in 512 Posts
    Blog Entries
    5
    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.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #5
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    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.

  • #6
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    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.

  • #7
    Regular Coder
    Join Date
    Jan 2012
    Location
    Slovakia
    Posts
    111
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Hm... i decided to use smtp, thx for tips.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •