Title: wp_mail headers
Last modified: September 8, 2016

---

# wp_mail headers

 *  Resolved [guylancaster](https://wordpress.org/support/users/guylancaster/)
 * (@guylancaster)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp_mail-headers/)
 * 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](https://wordpress.org/support/users/guylancaster/)
 * (@guylancaster)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp_mail-headers/#post-8160005)
 * found it all in my spam and junk folders!
 *  Thread Starter [guylancaster](https://wordpress.org/support/users/guylancaster/)
 * (@guylancaster)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp_mail-headers/#post-8163162)
 * Tested a bit more, From stops any email happening.
 *  Thread Starter [guylancaster](https://wordpress.org/support/users/guylancaster/)
 * (@guylancaster)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp_mail-headers/#post-8185697)
 * 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 9 years, 8 months ago by [guylancaster](https://wordpress.org/support/users/guylancaster/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_mail headers’ is closed to new replies.

## Tags

 * [headers](https://wordpress.org/support/topic-tag/headers/)
 * [spoofing](https://wordpress.org/support/topic-tag/spoofing/)
 * [wp_mail](https://wordpress.org/support/topic-tag/wp_mail/)

 * 3 replies
 * 1 participant
 * Last reply from: [guylancaster](https://wordpress.org/support/users/guylancaster/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/wp_mail-headers/#post-8185697)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
