WordPress fix for blog post via email

It takes an extra effort to post a blog entry via email b/c it requires a “ping” (of wp-mail.php) and a glitch (bug) in wordpress 2.2.x – if this post goes thru, then there is a fairly easy fix using 2 plugins. I’ll update this post with the how to…

* Sent via BlackBerry Curve by AT&T

[update] when this post was originally made via email, it only had the title (which was the email’s subject line) and blank content with the entry (even though the email had the above in the message body; I had to copy/paste after the fact). So, all this to say, it’s rather involved to fix WordPress 2.2.1 so that it can post via e-mail. What I did to fix blog by email:

  1. Downloaded WP-Cron-Mail Modified plugin
  2. Installed 2 plugins included in that ZIP and activated them
  3. Modify the /wp-includes/class-pop3.php according to igudo’s code fix for lines 367-379 <- this one worked for me! ** oops, I spoke too soon; this fix only works sometimes for me *
  4. Also tried solution for wp-mail.php fix in line 116 [not 165] from peymano, but that didn’t work either
  5. Alternatively, there is a patch at WordPress Trac 4337, but I don’t know how to patch
  6. note: the shorter fix from martinauer’s comment in this support thread to delete line 372 <- this did not work for me

If there’s an easier way to do all of this to get it working, please add a comment here. Appreciate the help!

You may also like...

9 Responses

  1. Bumble says:

    Hey DJ, here’s some exclusive Keller’s content for your page. I just typed up my favorite Keller sermon “The Hiddenness of God” here: http://docs.google.com/View?docID=dwh8457_4dq8mc5&revision=_latest

    You can add it to your page or cut-and-paste it to your googlepages.

  2. djchuang says:

    Bumble, thanks for your diligence with transcribing one of Keller’s sermon classics. And, thanks for letting me know of your work and granting permission to link to it — which is what I’ve done on my Keller page. It indeed challenges us to the deepest core of our faith when God seems silent or hidden in the hard times, and like Jacob and Job, we learn things in that place that cannot be learned elsewhere.

  3. Ageo says:

    There is another bug in the e-mail posting feature: when sending an e-mail, the parser cannot separate the header from the body of the mail HTML, so all posts have a huge blank space above the text. Any idea on solving it?

  4. Joel says:

    Changing the lines of code step 3 produced SOME content getting posted in the body section… but when the pop3 parser hit a quote mark (“)…. it ended the entire post at that point and did not continue. Anyone else have this problem? Just thought I’d mention it.

  5. chriskalani says:

    I have been after a fix for this for a week now… Have you made any headway on this or have you given up? This is a really frustrating problem. I wish wordpress would put more work into this. There are awesome possibilities with this if you think about using it over mms.

  6. djchuang says:

    No more headway. I’m not a PHP programmer, so I can’t do much about it.

    Since WordPress is open source, it’s not only the WordPress people that works on the software. Potentially anyone can work on a solution for this “post by email” function. But it looks like no one has succeeded yet.

  7. chriskalani says:

    Right, I would just like an official wordpress release with a beefed up email to blog function. Currently the function isn’t even working for me at all. Even from a regular email account it wont post the body f the email, just the subject… soo dumb.

  8. Srini says:

    I have the exact same problem. I tried the Postie plugin. It seems to work sometime and but other times it posts only the subject. Not sure what's going on.