Steve's Ramblings

  • Home
  • About
  • LastFM Widgets
  • Post By Mail
  • Site Search
  • Wordbooker
Witterings from the Site owner

← Posting to WordPress MU by email
WordPress and Facebook – Part 4 →

Posting to WordPress MU by Email Part 2

October 20th, 2009 by Steve and tagged code, coding, enhancement, php, post by email, wordpress, WPMU


Warning: This post contains material of a technical nature, if you start reading and feel dizzy or nauseous then stop reading immediately and go and lie down.

This is a follow up to my previous post where I outlined a prototype of an extension for WPMU which allowed posting to multiple blogs from one centralised POP3 account which collected all posts from all users of all blogs. This is very different from the usual way of doing it where you either go out to get the emails from external email addresses or you have multiple local accounts.

Well the prototype has, like Frankenstein’s Monster, come alive and it’s now got configuration screens and lots of rich techy goodness to it.

I’m not going to go over the instructions on how to configure the MTA again, those are documented on my last post, and in the notes in the downloadable archive :

Post by Email Post by Email-v1.zip

The Archive also contains instructions on where the TWO files need to be placed for the system to work.

What I’m going to cover here is the new features that I’ve added since the last post. Yes I have way too much time on my hands, but this is keeping my brain sharp so its all good at the end of the day.

These can be broken down into to distinct groups which are reflected in the two new options that will appear on the Settings menu:

Blog Level Options

These are options which are set by the blog administrator or blog owner:

Default Category for posts : This is a drop down of all categories and you select one to be the default category for posts without a category override

Optional Categories: This is a tick box list of all other categories in your blog, Toggle the ones you want users to be able to use in their category override.

Allow Posting By:  This is a tick box list of all the user who are members of your blog. Toggle the ones you want to be able to use the post by email. This will include YOUR address and by default no-one of them are checked (which basically deactivates the system for your specific blog).

User Level Options

These are options which are set on a user by user basis.

Personal Identifier : This is a optional text string which allows users to “secure” their posts. If this has been set then posts from them will be rejected outright. So set this to something good but memorable as you’ll have to provide it for each post.

Alternative Email: This allows you to nominate a secondary email address which the system will accept emails from. If you do not set this then posts will only be accepted from the email address registered to your account.

Additional Posting options

To support the “new” features there are now some additional posting options which you set at the top of your email.

wppbm-categories: A comma separated list of category names for this post. NOTE: This is names not numbers which makes it easier to remember (or are you so sad that you know the underlying IDs of your categories). You’ll find a list of the available categories on your user settings page. So assuming that the Administrator has enabled them you could do something like: wppbm-categories : computing,witterings which would post your post with those categories. If you do not specify this line then the default category set by the Administrator will be applied.

wppbm-pid: Your PID. If you’ve set your PID then you have to provide it here. If you’ve set it and don’t include it (or get it wrong) then your post is toast!

So that’s basically it. I’ve created a dedicated Post by Email Page where I’ll always list the current version and the bug fixes/enhancements.

So download it, configure it and play with it and bounce bugs back to me as comments!

  • Share this:
  • Digg
  • Reddit
  • Print
  • StumbleUpon
  • Press This
  • Email

Category Computing |



15 Responses to “ Posting to WordPress MU by Email Part 2 ”

  1.    Matt Says:
    October 20th, 2009 at 12:41 pm

    damn it, i missed out it currently doesn’t support posting to multiple blogs. I will have to keep waiting sadly :’(

  2.    Steve Says:
    October 20th, 2009 at 12:48 pm

    No it doesn’t, It probably could do if I did some tweaking to make it parse multiple to addresses, or you could simply send the email a second time to the second blog.

  3.    Matt Says:
    October 20th, 2009 at 12:52 pm

    Sorry for so many comments, I haven’t implemented it yet. But if I have one main blog and 4 sub blogs, users are just users and don’t own blogs themselves but can contribute content. Will this allow them to email their posts through to be able to contribute to the relevant blog then assign the relevant category?

  4.    Steve Says:
    October 20th, 2009 at 1:01 pm

    Yes, if they can access the back end of the blog in question then they can set their privs.

    Also as the blog owner you’ll need to set it up for each blog, enabling the categories and the users.

    Then its just a matter of emailing blogname@your.email.domain and it should work out the rest! Well thats the idea

  5.    Matt Says:
    October 24th, 2009 at 2:23 am

    steve I wish to show you something, how can i contact you by email?

  6.    Anonymous Says:
    November 22nd, 2009 at 8:48 am

    Nice post . keep up the good work

  7.    Elena Coen Says:
    February 28th, 2010 at 2:16 am

    Hello Steve,

    I’m hoping your plugin will do the trick for me but am unsure. What I need to do is post by email via one or more email accounts. I will subscribe to notifications by email from weather services, earthquake notifications, etc. and need each to post to its appropriate category. I won’t be able to get the sender to put shortcodes into the mail so I don’t know if there’s a third party way to automate this by somehow adding a signature on the resend or if by your plugin I can specific that email arriving from a certain address posts to one category, then email arriving from another address posts to another, etc. Can it accept posts from more than one address? I hope I’ve explained the task and really hope you have or know of the solution.

    Thanks, Elena

  8.    Steve Says:
    February 28th, 2010 at 9:33 am

    Elena, it wasn’t something I’d really considered – but it probably wouldn’t be too hard to add. The blog level options already have a category default so I could always add an additional block where you specificy incoming email address and the category you want it to post under so if the email was coming from say the USGS you could assign a default category of “Earthquake”.

  9.    Anonymous Says:
    March 3rd, 2010 at 2:47 am

    I had two questions.

    1. What is the advantage of the user emailing theirwpmuloginid@example.com which is then dumped into a catch-all account vs. having the user email wpmuposts@example.com directly and checking the “from:” field in the email to determine username?

    It seems like it would require less server side configuration for the administrators to just check the “from:” field to determine user id, or would this require the site admin to keep track of the mapping of email addresses and user ids?

    2. Do you know if the virtual domain/catch all email setup is easily replicated on an Exchange Server?

  10.    Steve Says:
    March 3rd, 2010 at 7:07 am

    Doing it this way means that a user can be subscribed to more than one blog – if you only use a single target address then you end up having to put a “target” into the email somewhere. Also it would allow you to easily extend the functionality so that the Blog Owner could change the target email address if he found it was being spammed.

    I have no idea if Exchange can support catchalls.

  11.    Anonymous Says:
    March 12th, 2010 at 1:22 am

    Does the script support connecting to the email account via SSL?

  12.    Steve Says:
    March 12th, 2010 at 8:13 am

    I suppose it could – but it doesn’t as I sort of assumed that the email server would be on the same server as the WPMU install.

  13.    Ray Says:
    June 4th, 2010 at 6:29 pm

    Hi Steve,

    I’m interested in trying your plugin. However the .tar.gz file is corrupt according to WinRAR.

    Can you look into this?

    Also I have a question, do you know if WP 3.0 in network mode will enable the “Post via email” feature?
    http://codex.wordpress.org/Post_to_your_blog_using_email

  14.    Ray Says:
    June 4th, 2010 at 6:30 pm

    Also just wondering what plugin you’re using for your comment moderation!

    I’ve never seen a separate screen where a user needs to click on a button to verify they are human!

  15.    Steve Says:
    June 4th, 2010 at 11:43 pm

    Ray – I’ve recreated it as a zip file. Not sure what happened to break it because it was working earlier.

    Not sure how it will work with WP 3.0 – not something I’ve looked at really yet

    I use MontySpam (which is a WPMU specific plugin) which is probably what is doing the business with the button ;-)

  • Facebook Status


     FB photo for Stephen Atty


    Stephen Atty : Posted a new post on their blog
    (Sat May 12, 10:09 pm).

  •  

  • The Old Stuff

    • May 2012
    • October 2010
    • July 2010
    • May 2010
    • April 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • December 2006
    • October 2006
    • September 2006
    • August 2006
    • July 2006
    • December 2005
    • November 2005
    • August 2005
    • February 2005
    • January 2005
    • December 2004
  • Site Wide Tags


    3G 93 95 accident accounts Add new tag alcohol allergy advice alone alternator america android animal anniversary apache augusta autherley bank basketball beer Beeston benefits birmingham birthday blogging blogs boat boating Bob Geldof Boscastle boston brakes Braunston brewood BSS Bude builders C cable calendar camsigh canalplan canalplan AC car crash car park cars Cast List casualty Cats Challenger chavs cheese cheltenham Chester Christmas cinco de mayo clearsilver coast code coding cold Computing cooker CPRS crackers curry customer service dead depression diet diy dns e-commerce easter eli stone elvis email enhancement extension facebook favourites fish floods food forums Fraud fridge funding g1 gailey garage garden gas GCHQ General Options geospatial gloucester gnosall gold cup goldstone Goodies google Googlemaps granny buttons graph API grub street guinness hackers hallowell Heathrow holiday holidays home home mooring hoover hotel Importing integration intercontinental internet Internet Explorer irish Javascript jen jewellery Jill Joke json kathy kennebunk kestrel kitchen korea ladykat Last.FM latitude lawn leeching lighthouses linux ll bean lonely longitude lunch maine malvern manage routes maps market drayton maths mexican microsoft midges mintball mobile mooring mortgage MOT moving mozart MP Music mystery Nantwich national hunt netscape new domain new features new server nhs norbury npower ogunquit painting paprika party penkridge petition photos php phpbb pickle plugin Plugins poke in the eye police portland post by email pringles programming pub night pubnight pubs racing rain real ale renault Rick route importing Routes

    Donate

    If you've found anything useful on here and want to say thanks then please feel free:



    WPMUDEV

    WordPress MU, WPMU and BuddyPress plugins, themes and support at WPMU DEV

    Snapshots

    Enhanced with Snapshots
  •  


© 2012 Steve's Ramblings using Dignity theme by themebox

RSS Entries and RSS Comments.

Provided by WPMU DEV -The WordPress Experts
Hosted by Canalplan Blogs


Server uptime: 12 day(s), 7 hour(s) and 21 minute(s) | Server Load: 0.51, 0.44, 0.36
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.