[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
Sun Aug 24 04:11:23 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:
Component: General | Version: 2.5.1
Severity: normal | Resolution: worksforme
Keywords: wp-mail.php has-patch needs-testing |
-------------------------------------------------+--------------------------
Comment (by geodanny):
This still remains an issue with WP 2.6.1; however I won't re-open this
bug.
I get blank posts when using Yahoo! or Gmail. I think that blog-by-email
ultimately needs to accept text\html regardless of encoding, as nracklife
stated.
I'm not a coder so my quick fix was to remove the following from wp-
mail.php. It sounds as if my problems all lie with that part of the php
code.
{{{
if ($content_type == 'multipart/alternative') {
$content = explode('--'.$boundary, $content);
$content = $content[2];
$content = explode('Content-Transfer-Encoding: quoted-
printable', $content);
$content = strip_tags($content[1],
'<img><p><br><i><b><u><em><strong><strike><font><span><div>');
}
}}}
That leaves me with a post with unnecessary info about the content type,
encoding, etc. but at least my content isn't stripped and I can edit at a
later time to remove the unnecessary info.
With that portion of the code removed, here is what my post content looks
like when sent from Yahoo! Mail:
{{{
--0-945523328-1219549749=:79650
Content-Type: text/plain; charset=us-ascii
testing blog by email 8
test
test
test
}}}
and here is what my post content now looks like when sent from Gmail:
{{{
------=_Part_45000_2317808.1219549399420
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
testing blog by email 7---
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/6904#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list