[wp-trac] Re: [WordPress Trac] #6904: Blog by email posts blank in 2.5.1 w/ HTML email

WordPress Trac wp-trac at lists.automattic.com
Fri May 30 21:13:14 GMT 2008


#6904: Blog by email posts blank in 2.5.1 w/ HTML email
-------------------------------------------------+--------------------------
 Reporter:  geodanny                             |        Owner:  anonymous 
     Type:  defect                               |       Status:  closed    
 Priority:  high                                 |    Milestone:  2.7       
Component:  General                              |      Version:  2.5.1     
 Severity:  normal                               |   Resolution:  worksforme
 Keywords:  wp-mail.php has-patch needs-testing  |  
-------------------------------------------------+--------------------------
Changes (by MyLifeIsADanceFloor):

  * status:  new => closed
  * resolution:  => worksforme

Comment:

 Maybe this can help ..

 Go to line 139, and paste this above it.

 {{{
 function rheaders($string) {
         $headers = array(
                 "/Content\-Type\: text\/html\; charset\=UTF\-8/i",
                 "/Content\-Transfer\-Encoding\: 7bit/i",
                 "/Content\-Disposition\: inline/i"
                 );
         return preg_replace($headers, '', $string);
 }
 }}}

 Now edit this line

 {{{
 $content = explode('Content-Transfer-Encoding: quoted-printable',
 $content);
 }}}

 By:

 {{{
 $content = rheaders($content);
 }}}

 Maybe you need to change the rheaders function to whatever the headers of
 the email are.

 greetz

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6904#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list