• Resolved guylancaster

    (@guylancaster)


    The code below works but not when i uncomment the From line. $fromEmail is a valid email.

    Is this my ISP? Is this the latest version of wordpress? (clamping down on “spoofing”). It dosent mention it in the release stuff for 461

    $headers = “MIME-Version: 1.0” . “\r\n”;
    $headers .= “Content-type:text/html;charset=UTF-8” . “\r\n”;
    // $headers .= ‘From: $fromEmail’ . “\r\n”;
    $m = str_replace(chr(10),”<br/>”,$m);
    $s = “IC : “.$s;
    wp_mail($e,$s,$m,$headers);

    Any help apreciated….

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter guylancaster

    (@guylancaster)

    found it all in my spam and junk folders!

    Thread Starter guylancaster

    (@guylancaster)

    Tested a bit more, From stops any email happening.

    Thread Starter guylancaster

    (@guylancaster)

    Tested a bit more and…

    wp_mail allows you to add filter to render html or set the from, but not both

    wp mail with a “render html” declaration in the header and “from email” using a filter does what i want.

    Surely wp should allow 2 filters to be active at once? or have i missed something?

    • This reply was modified 8 years, 6 months ago by guylancaster.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_mail headers’ is closed to new replies.