WordPress.com Post By Email with PHP

2 replies
I can't believe this hasn't been asked but my Googling turned up squat.

I'm building content curation tool that uses a variety of automated sources for text analytics. Then using the result plus the original content to create an original post for a WordPress.com site.

I have set up WordPress.com to allow me to post by email but when I send the email via PHPMailer or the simple mail function it nevers posts. I was told way back when by WordPress.com support that they don't allow auto-posting. They did not have a problem with my proposed content though.

When I send the exact same email content to WordPress.com manually via Gmail in a browser it posts almost immediately. So again I don't think it is the content that is the issue.

I'm guessing that my headers aren't right but I don't know what to fix let alone how.

I've also seen in other forums that the XML-RPC function at WordPress.com is still operational even though there is no longer any option for it. Would it be easier to simply get XML-RPC working? Anyone have some sample code they are willing to share?

Any thoughts or suggestions would be appreciated.
#email #php #post #wordpresscom
  • Profile picture of the author KirkMcD
    Have you compared the headers for potential differences?
    Try relaying through the gmail servers.
    {{ DiscussionBoard.errors[6894338].message }}
  • Profile picture of the author spradlig
    I have not - yet - it was on my to do list. I thought someone here might know if there was a portion of the header that particularly important. Also, my Googling led me to believe that at least one portion of the header was a hash of some certificate or something. Not something I'm going to blindly stumble upon and get it correct I figure.

    What I have found since posting this question was some code to post via XML-RPC so posting via email has become a lot less important. I'd thought that WordPress.com had shut down their support for XML-RPC since there are no longer any options for it when you setup your account. But I was pleasantly surprised.
    {{ DiscussionBoard.errors[6895132].message }}

Trending Topics