WordPress.org

Ready to get started?Download WordPress

Forums

Blog by email posts blank in 2.3.2 w/ HTML email (28 posts)

  1. geodanny
    Member
    Posted 6 years ago #

    My blog by email posts are blank. WP is able to access the email account I have set up for blog by email purposes, along with the messages I send. The subject line becomes the title of the post; however the text within my email is redacted.

    It appears that this happens during the sequence in which WP gets the contents of my email to post. Here is a copy of the confirmation email I receive from WP.

    *********

    Author = *********@yahoo.com
    Content-type: multipart/alternative, boundary: 0-79868778-1200130438=:79225
    Raw content:

    Author: 3
    Posted title: test
    Posted content:

    Mission complete, message 1 deleted.

    ********

    As you can see, it says that there is no content to post.

    Here are all the things I think might help in diagnosing this problem:
    - I send email from my Yahoo! account (HTML) email account.
    - I tested the bug and it only happens with HTML formatted email from Outlook, Yahoo!, or GMail accounts. Email sent as text only don't appear to have a problem.
    - I use WP 2.3.2. I had a similar problem with 2.1 and 2.2 and fixed it according to the fix on Bug 4337 - http://trac.wordpress.org/ticket/4337. It reappeared when I installed 2.3.1. The same fix does not correct my problems now.

    Any ideas on how I can fix this? Are there any debugging logs I should turn on to further help diagnose the source of my problem?

  2. TheYellowAnt
    Member
    Posted 6 years ago #

    I am having the exact problem. What's the word on this issue?

  3. geodanny
    Member
    Posted 6 years ago #

    Sorry, I haven't heard back from anyone either. We'll just need to hope someone reads that this issue exists. I don't think it is fixed in 2.3.3 either.

  4. joshfowler
    Member
    Posted 6 years ago #

    I take it there hasn't been a fix for this yet. I have done a few searchings and can't seem to find anything. Whats funny is that it was working fine in 2.3.2 for me but once upgraded to 2.3.3 html emails are not posting the message body. If we do it to plain text it works fine but the mobile phone version we are using to send emails do not have an option for plain text emails. So a fix for this would be great.

  5. icr8stf
    Member
    Posted 6 years ago #

    My emails are posting however they are showing up with a random style definition code for the "P" tag. Then the content has about 1 and half words then an "=" sign. The rest of the words are then placed on the second line.

    Anyone else have this issue?

  6. spotthehall
    Member
    Posted 6 years ago #

    I am seeing similar:

    Subject of email shows as article title, but only fragmants of the body.

    Additionally, I have tried emailing photographs and they are broken into code that does not (thankfully) show.

    I have tried posting from GMail, Yahoo and my domain email via iPhone and from desktop Mail.

    WP 2.3.3

  7. spotthehall
    Member
    Posted 6 years ago #

    WP 2.5 Sneaky Peek appears to have addressed this problem (iPhone and Desktop tested) and it is working - BUT - you have to visit your installation to set the post Status from Pending Review to Published, which kinda defeats the object of mobile blogging.

    Also, it would be good to have say ImageMagick incorporated to cater for any images sent. They are now getting through, but as code.

  8. geodanny
    Member
    Posted 6 years ago #

    Still doesn't work for me in 2.5.

  9. puzz
    Member
    Posted 6 years ago #

    WP 2.5 here... Don't work for me :-(

  10. spotthehall
    Member
    Posted 6 years ago #

    I've "upgraded" to the official release rather than Sneaky Peek (if there is a difference) and it works OK - but still the problem of the post being held as "Pending Review".

    There may be a setting somewhere, where I can change this? But, defeats the idea really.

  11. geodanny
    Member
    Posted 6 years ago #

    It makes it past the pending review for me. Only the title is published. the message is blank.

  12. MPG
    Member
    Posted 6 years ago #

    This is confirmed still to be a problem in 2.5! What happened?

  13. llamaman
    Member
    Posted 6 years ago #

    I found that if I switch to the "plain text editor" in gmail, my title and body text appears. But in "rich" editing mode, only the title appears.

  14. ryancollier
    Member
    Posted 6 years ago #

    I'm using 2.5 and my posts are stuck "Pending Review" as well.

    Also, from what I have gathered, no one has been able to successfully use a Gmail account - or Google hosted services account to post via email.

    Seriously? This is still a problem? How come with Blogger it is a non-issue, but with WordPress it seems like a bunch of work arounds and hacks that still don't result in the problem being fixed.

    I'm not a programmer, I'm an end-user, otherwise I'd try to solve the problem myself. At the very least, I can offer my observations.

    My $.02.

  15. beku76
    Member
    Posted 6 years ago #

    I'm getting really upset with this problem (and with the lack of info avialable...) looks like nobody cares :(

    I posted 3 topics about wp-mail.php problems in the last 3 days...

    c'mon we are on the mobile blogging age, we need to be able to post by mail/phone.

    *my problem is that I get the attachment as text... long long long amounts of letters and numbers together... so ugly and useless :(

  16. oblio
    Member
    Posted 6 years ago #

    Having the exact same problem here, not being able to post correctly via email. I'm using WP 2.5, a POP3 email account and hosting my blog on my own server. The emails do make it to the admin panel but it only shows the posts title. The rest of the post, the text or images, are simply not there, blank. Before this, I was also getting numbers and letters.

    I kinda solve it using the PostMaster plugin, but you are limited to one image per mail and, so far, I have not found a way to make it automatically resize the images. So images that are wider than what they should get squeezed.

  17. spotthehall
    Member
    Posted 6 years ago #

    This could soon fixed - well from an iPhone!

    http://www.macworld.co.uk/ipod-itunes/news/index.cfm?RSS&NewsID=20974

  18. bbrian
    Member
    Posted 6 years ago #

    Re: published/pending

    From reading the php, blog by email posts seem to be marked as pending on less the email address has an account in that WordPress blog. This can be changed by editing wp-mail.php and changing 'pending' to 'publish' in the line under

    // Author not found in DB, set status to pending. Author already set to admin.

  19. shakewell
    Member
    Posted 6 years ago #

    Thanx bbrian, that fix did it!

  20. shakewell
    Member
    Posted 6 years ago #

    Now, how do we fix those annoying line breaks coming from the e-mail format?...

  21. shakewell
    Member
    Posted 6 years ago #

    Here's how I fixed the line breaks:

    I used the Text Control plugin:
    http://dev.wp-plugins.org/wiki/TextControl
    Install the plugin package into WordPress.

    You will now find text control config in your WordPress SETTINGS

    Within text control config, change the default post setting to MARKDOWN

    If you have PHP v. 5x, you will need to replace the markdown.php file with an updated version. Otherwise, you will get errors on every post about Warning: preg_replace_callback()

    Here is the updated version of markdown.php:
    http://michelf.com/projects/php-markdown/

  22. gungholady
    Member
    Posted 5 years ago #

    I'm having the problem of being stuck in pending preview too. I don't have anything like this in my wp-mail.php file. Don't have a clue as to where it would go.

    // Author not found in DB, set status to pending. Author already set to admin.

  23. Grievous Angel
    Member
    Posted 5 years ago #

    Gungho lady - this should be there. I found it in my 2.5 install. I used my ftp program (I used FileZilla on PC - it's very easy to use), downloaded the wp-mail.php file to my desktop, opened it in Notepad (should be on your machine - use textedit or something on a Mac), did a search for, IIRC "not found" and got the line. (I tried searching for that whole line and couldn't find it - try again!)

    Changed pending to publish and voila!

    Err, actually it didn't help my problem, but it might help yours... I needed to put the right update string to wake up Postie into my footer.

    So how you getting on with this?

  24. gungholady
    Member
    Posted 5 years ago #

    Nope, I updated my WordPress with the latest download. Everything wp-* was deleted as per the instructions and the new files uploaded using filezilla. That string was not in my wp-mail.php file.

    What I ended up having to do to solve the problem was to create a new user with Author privileges whose email address was the same as the special email address created for WordPress.

  25. geodanny
    Member
    Posted 5 years ago #

    Still happening. Posts sent by email are blank except for the subject line which becomes the title. I have WP 2.5.1.

    Author = *********@yahoo.com
    Content-type: multipart/alternative, boundary: 0-377353644-1209781424=:7075
    Raw content:

    Author: 3
    Posted title: testing posting
    Posted content:

    Mission complete, message 1 deleted.

  26. geodanny
    Member
    Posted 5 years ago #

    I opened a bug track ticket for this issue: http://trac.wordpress.org/ticket/6904

  27. geodanny
    Member
    Posted 5 years ago #

    Although the bug I opened was closed (I won't reopen) this remains an issue with WP 2.6.1.

    The issue is that WP strips out HTML from email when posting by email. In the process, it strips out the content from of email sent in HTML format (default setting with Y! Mail, GMail, Outlook, etc.). Ultimately, WP needs to accept email in HTML format. In the meantime, it appears this will not be fixed.

    For those interested, you may edit wp-mail.php yourself and make the quick fix I made (note: I'm not a coder).

    My fix: remove this section of 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>');
    	}

    Removing that code leaves me with a post that contains unnecessary info about the content type, encoding, etc. I can edit at a later time to remove the unnecessary info. I can tolerate this compromise because the alternative (leaving the code in tact) strips the content of my email and leaves me with an empty post.

  28. bmemor21
    Member
    Posted 5 years ago #

    Hello everyone,

    I'm not a coder, but I think I've found the problem. If you look at line 152, you see:

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

    This line is basically setting the boundaries for the "meat" of the email. Depending upon what service the email is originating from, "quoted-printable" may be within the source of the email. After looking at email sources from various providers, I decided to change it to "Content-Transfer-Encoding:" This leaves a bit of junk in the message, but at least it lets it get through. If you comment out lines 149-155 you get a similar effect, but a whole lot more junk.

    I wish I knew more about PHP to put in various cases of Content-Transfer-Encoding, to eliminate the rest of the junk, so if anyone can help me out here that would be great.

    Tim
    TMedWeb

Topic Closed

This topic has been closed to new replies.

About this Topic