Wouldn't it be great if adding articles and images to your website was as easy as sending an email. It can be, here is a quick tutorial on how to add this functionality to your site.
Firstly you need to setup a unique email account that the site can use eg website@YourDomain.com.
Whatever gets sent to this email account (from approved users) will be published automatically on the site, any spam or non authorised users will be ignored - clever!
Now download and install the following:
http://drupal.org/project/mailhandler
http://drupal.org/project/mailsave (enable Mailsave & Mailsave to CCK Imagefield)
Next go to /admin/settings/filters and add a new input format called efilter > tick HTML filter, Link filter and URL filter. Leave Line break converter unchecked. This is because email systems add lots of extra line breaks and we need those to be ignored.
Now go to /admin/content/mailhandler and add a mailbox > add your specific mailbox settings plus...
Security: disabled
Send error replies: disabled
Default commands: (something like...)
promote: 0
status: 1
type: earticle
taxonomy: [Website]
----------
Delete messages after they are processed? tick
Cron processing: enabled
----------
Input format: efilter
Then go to /admin/content/types/add and create a new content type earticle and add a cck imagefield called image
Now to test, send an email (with pic attached) to website@YourDomain.com from the email address linked to user1 of the website. Go to /admin/content/mailhandler and click [retrieve] you should see the following message
"Mailhandler retrieve successful: 1 messages for website@YourDomain.com" > then go to http://YourDomain.com/category/[website] > and there is your article and image.
User1 has access and privilages to everything, so now we need to make it work for other content providers. Go to /admin/user/roles and create a new role called "email content provider"
with the following permissions
imagefield module
view imagefield uploads [x]
Mailsave module
save attachments [x]
mailsave_to_imagefield module
convert to imagefield [x]
node module
create earticle content [x]
Now for anyone on your site who you wish to allow to add content via email - add the "email content provider" role to their profile. When they email content it will appear once /admin/content/mailhandler > retrieve is run OR Chron runs.