www.webdeveloper.com
Results 1 to 2 of 2

Thread: mail() headers to prevent the mail going straigh to junk folders

  1. #1
    Join Date
    May 2004
    Posts
    288

    mail() headers to prevent the mail going straigh to junk folders

    im using these headers in my PHP to make sure that emails are avoiding the junk mail folder but they dont seem to be working very well.

    PHP Code:
        $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
         
    $headers .= "From: hello@somebodylovesyou.co.uk <hello@somebodylovesyou.co.uk>\r\n";
         
    $headers .= "Reply-To: hello@somebodylovesyou.co.uk <hello@somebodylovesyou.co.uk>\r\n";
         
    $headers .= "Return-Path: hello@somebodylovesyou.co.uk <hello@somebodylovesyou.co.uk>\r\n";
         
    $headers .= "X-Priority: 3\r\n";
         
    $headers .= "X-MSMail-Priority: Normal\r\n"
    is there anythin from the above code that u would change or remover that might help this work?

  2. #2
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    More than likely it is your web-host causing the issue. Try not setting a from, sometimes if the from doesnt match the server it can auto-flag it as junk.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles