WordPress post via email

If you know this feature already , skip this article. But i have to ask a single question at the end of this section .

For wordpress version less than 2.3 , Go to Options  >  writing, and  for greater than 2.3, Go to settings > writing

What you have to do is create an email account with pop3 support

You can see the heading “Post via e-mail” there.

Enter your email server (by replacing mail.example.com)

Enter your pop3 port. (110 by default)

Enter your email login and password.

Choose a category to for the email entry posts

Finally Press update option Button

What you have done above is only the settings. For grabbing or pulling the content from email, you need to call/trigger an url.

That url is: http://yourblogdomain/wordpressinstalldir/wp-mail.php

Either you can call it manually. Or you can set up a cron job for that url by call the url using wget or like functions

Another simple mechanism to call this email trigger is use a hidden iframe in your blog template. (anywhere)

<iframe width=”0″ height=”0″  style=”display:none”  src=”http://yourblogdomain/wordpressinstalldir/wp-mail.php“></iframe>

The problem with this email posting is , it strips all the html tags before entering into wordpress database.

The is no way to find the attachments from an email.

So I decided to start a wordpress plugin which does the above missing properties. If there is any ‘working’ plugin available, please let me know, so that  I can avoid the re-inventing of wheel .

Thanks

Sajith M.R

12 Comments , , , , , , , ,

12 Responses to “WordPress post via email”

  1. TheAnand August 19, 2008 at 1:37 am #

    I am sure that will be a nice plugin. I used to have a plugin which automated posting on my blogs, but I needed a few more features on that plugin, will tell you more latr.

  2. WillS September 16, 2008 at 12:02 am #

    Maybe a modification of this plugin meant for emailing picture and movie files:
    http://blog.xforward.com/?page_id=65
    Modify to allow a broader range of file types? If you get this working please let me know…

  3. Devilish Southern Belle October 23, 2008 at 6:16 am #

    I can not get post via email to work no matter what I do, and I have tried everything to the letter. It’s frustrating. If you get a new plugin working, I’d love to come try it. I can’t get postie to work, either.

  4. terry November 19, 2008 at 11:49 pm #

    I believe this does what you want

    http://blog.xforward.com/?page_id=65#download

    I am running 2.6.3 and it works perfectly well with plain text emails sent from outlook. I don’t have it working with my mobile yet as the subject line disaplyes errors. However the picture and main content are still displayed correctly. I wrote a help post about this today, hopefully someone will point out a way to correct this.

    http://wordpress.org/support/topic/218754?replies=1

  5. rob felty May 5, 2009 at 11:56 pm #

    have you looked at postie?
    http://wordpress.org/extend/plugins/postie

  6. custom joomla development guy May 30, 2009 at 9:53 pm #

    hoah this will save alot of time

  7. Kai November 12, 2009 at 9:43 am #

    I’m a newb, but perhaps someone can help me. I want to set up my blog to do post via email. I’ve gone to settings > writing and set up post@mydomainname.com

    But when I go to http://yourblogdomain/wordpressinstalldir/wp-mail.php though I get:

    404 Not Found
    The requested URL /wordpressinstalldir/wp-mail.php does not exist.

    How should I try troubleshooting? Also I have my blog set up to mydomainname.com/blog Does that mean I should enter in http://mydomainname.com/blog/wordpressinstalldir/wp-mail.php ? THANKS!

  8. Gaby March 4, 2010 at 7:14 am #

    Does anyone know if its possible and how to set up a POST to receive all emails from an address? So that the post itself builds content rather than having a new post each time. Or perhaps this can be done on a page? I am thinking maybe there is a way to tag a category which always posts any content sent to it to the same post? Any ideas appreciated.
    Thanks.

  9. Tahir Mahmood September 28, 2010 at 7:39 am #

    Hey Sajith, Thank you very much.
    The wp-mail.php thing really helped after quite a but of running around on other websites.
    Nice one! God Bless!

  10. cole haan kindle covers January 25, 2011 at 8:45 am #

    Hi sajith thanks for sharing…

    and how to add thumbnail on each our post email.

Trackbacks/Pingbacks

  1. All my bookmarks ever | Daniel John Gayle - May 30, 2009

    [...] WordPress post via email | [...]

Leave a Reply

More in php (51 of 101 articles)


Online Photoshop in PHP Part (5) >> (image after watermarked with gmail logo) Those who haven't seen  the online photoshop ...