I've been searching all over this website, but can't find the answer to my question. (maybe i'm blond or it's just because i'm female...sorry)
I've installed mailhandler module and it is working fine. But now i am trying to have mailhandler process the attached images to the emails. I don't get any error messages but mailhandler just ignores the attached images. The post appears as new blog, but without the image.
Is there a simple solution for this or do i have to hack the code (which i'm not very good at)?
For test purposes i have installed upload_image, upload, inline, img_assist, image modules.
Or is it just me and am i using the wrong filters and am i just filtering the attachment from the email?
If anyone has the time and patience to explain to me what i should do to get this working, please do :)
Comments
Solution?
Did you ever find a solution or work around to this?
FWIW, listhandler doesn't forward images to email either.
These would be great additions to these modules for 4.7.
I think I have a working version...
I think I have a working version of this. I wanted to be able to post, with pictures, from my phone, because we're expecting a baby and I would love to be able to post a picture via my phone when it arrives!
I have been tweaking the mailhandler module, and have got it talking to image, so that if I post with a jpeg it inserts the post as an image, generates all the thumbnails and so on.
If the post contains no image it's just a regular story, if the attached file isn't a valid jpeg it gets ignored and you get a normal post.
I only finished it tonight, and I'm not sure if I did it right - I'm going to try and test it over the next day or so, and if it looks ok I'll post more details.
I'm quite new to Drupal and PHP so my code might not be spot on, but it seems to be getting the job done!
Right, back to check my site to see if mailhandler collected the picture I just posted... YES! It's there
Can't write more just now - I was only going to work on this for another five minutes, about three hours ago...
________
Just five more minutes...
www.stuartandnicola.com
________
Just five more minutes...
www.stuartandnicola.com
Cool stuff
Saw the posts in the feature request tracks for mailhandler.
Looking forward to this for mailhandler and 4.7 immensely!
Seems to be working...
My modified version of mailhandler (for 4.6) seems to be working ok for me. I've had it up and running for a few days and have been posting to the site via phone. To run this you need my modified mailhandler (in place of the regular one), and you also need the image module.
The code has been picked up by some other drupal developers who are working on a new mobile media blog module for 4.7, so hopefully that will mean a 4.7 ready version will be along soon!
________
Just five more minutes...
www.stuartandnicola.com
________
Just five more minutes...
www.stuartandnicola.com
More updates
I have rewritten my code as a stand alone module that I've called mailsave. This doesn't rely on a modified mailhandler (in fact, to use it you must go back to the original mailhandle module!)
mailsave can extract the first jpeg to create an image node, but it will also save the other attachments too, which is neat if you are mailing in audio or something.
This really came in to its own yesterday as my brother-in-law and his wife had a new baby, and we sent the photos straight to the web :-) Now that is a nice use of technology and of drupal - I love this program!
You can get mailsave here.
________
Just five more minutes...
www.stuartandnicola.com
________
Just five more minutes...
www.stuartandnicola.com
Mailsave
Mailsave does the trick: http://drupal.org/project/mailsave
- George @ Dynapres.nl