Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Outgoing php mail as spam

  • 27-11-2013 10:25PM
    #1
    Registered Users, Registered Users 2 Posts: 99 ✭✭


    How do I prevent outgoing mail being marked as spam?

    Sent using php script


Comments

  • Registered Users, Registered Users 2 Posts: 7,742 ✭✭✭mneylon


    Marked as spam by whom?

    In any case you'd need to make sure that your emails are properly formed and formatted

    Is it a custom script or one that's part of a CMS?


  • Registered Users, Registered Users 2 Posts: 99 ✭✭Gargled


    Thanks for the quick response. 

    It's a custom php script. The mails are properly formatted but picked up as spam by Microsoft live account. Just doing testing at the moment. 

    In gmail I see the [font=arial, sans-serif]via[/font][font=arial, sans-serif] pemlinweb147.blacknight.com [/font]after the email address in the header. 

    Just wondering if there is anything more I can do to help keep automated mails out of the spam folder?


  • Registered Users, Registered Users 2 Posts: 7,742 ✭✭✭mneylon


    You'd really need to run the emails via some kind of spam test to see how they're being picked up
    The most common issues are that the emails send but aren't properly formatted as far as 3rd parties are concerned

    Look into things like SPF records for example


  • Registered Users, Registered Users 2 Posts: 236 ✭✭jamesnp


    Best option is to set up dmarc on your domain, including SPF. Then make sure you're sending the mail properly in PHP

    I use the following:

    mail("email@mail.ie", "Subject",
    "A Name, a cara,

    Email body

    ", "From: Joe Bloggs <info@email.ie>\nContent-Type: text/plain; charset=utf-8; format=flowed; delsp=yes\nContent-Transfer-Encoding: quoted-printable\nMime-Version: 1.0 (Apple Message framework v929.2)\nX-Mailer: Apple Mail (2.929.2)", "-f info@email.ie");


  • Registered Users, Registered Users 2 Posts: 4,468 ✭✭✭matt-dublin


    you need to set up a DKIM signature on the mail and SPF in your DNS records.


  • Advertisement
Advertisement