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

php mali() cant send HTML emails (PHP 5.5.27)

  • 14-08-2015 05:41PM
    #1
    Registered Users, Registered Users 2 Posts: 1,907 ✭✭✭


    I have two php mail() functions on my page. One is sending raw text email to me and it is working fine. Second one is sending nice HTML email to visitors and it stopped working after hosting upgrade to php5.5.27!!


    My header for HTML email:
    $headers = "MIME-Version: 1.0" . "\n";
    $headers .= "Content-type:text/html;charset=iso-8859-1" . "\n";
    $headers .= 'From: my company <info@my_address.ie>'."\n".
    'Reply-To: my company <info@my_adderess.ie>'."\n".
    'X-Mailer: PHP/' . phpversion();

    mail($to, $subject, $message, $headers);

    If I turn it into sending raw text it works fine. If I turn it back into HTML (text/html;charset=iso-8859-1) it is not working. I got lame advice to use -f parameter in mail() which seems to be Sendmail parameter and I am not using Sendmail. Any help?


Comments

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


    Please contact our support team directly with details including domain name(s) etc and they may be able to advise


  • Registered Users, Registered Users 2 Posts: 1,907 ✭✭✭zom


    Have you introduced any new anti-pishing policy recently? After all week of trying to make my forms working I suspect they are halted somewhere between my Sendmail and external world (I checked - it is not blackisted).
    And I already asked support, they advised to use -f parameter which didn't help.

    Could it be caused by Spam Expert you use to send website emails??


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


    zom wrote: »
    Have you introduced any new anti-pishing policy recently? After all week of trying to make my forms working I suspect they are halted somewhere between my Sendmail and external world (I checked - it is not blackisted).
    And I already asked support, they advised to use -f parameter which didn't help.

    Could it be caused by Spam Expert you use to send website emails??
    It's possible as we do filter the outbound emails, but it isn't blocking emails for everyone. Have you got a ticket open with our support team about this?


Advertisement