This release has some code clean up. It also adds a new feature. Ddman got me his verison of the forwarding code. I’ve merged this in and added some tweaks.
Basically you can now set an option to have any mail that is sent to your gateway that would be rejected automatically forwared to your administrator. This is handy in those cases where you try to send in a post from an account you haven’t authorized (This got me when Cingular changed my att.com email account over). The cool part is that it also forwards all attachments. If you send in pictures they will get forwarded along.
The system also handles cases where the email is blank better.
Fiunally, if you got a message from an invalid user there was a risk that you could lose mail if your cron job didn’t run often enough. Now it continues to process even if there is a message from an invalid sender.
There is a risk that if someone sends you a virus or what not that it will be bounced along happily - but that’s why you can turn it off :).
Enjoy!
P.s. if anyone knows any good tools to work with 3gp files under linux (unstable debian) I would love to hear about it. I would like to be able to make auto thumbnails for movies from my phone as well.
Original Source is here WP-Mail 0.312
May 25th, 2005 at 9:28 pm
not sure if you have seen http://ffmpeg-php.sourceforge.net/
May 25th, 2005 at 9:59 pm
I love this “plugin”! But I have 1 question - how do I remove any “signatures” left by my wireless service? My blog posts the title, entry, and picture with no problems, but it also includes Verizon’s little “instructions” on how to use their Get it Now service (see my example). I’m an amateur when it comes to using PHP; any assistance would be greatly appreciated!!!
May 26th, 2005 at 1:45 pm
The program looks for a line that starts with –
So….
If you finish your mobolog post with a new line and put two dashes and then send it - the module should interpret all the stuff from Verizon as you signature
Not the most elegant solution - but probably the simplest :)
May 31st, 2005 at 4:30 pm
I’m currently running 0.312.8 and I still experience the double message body that is described in the comments here:
http://www.economysizegeek.com/?p=203#comments
Sending a plain text email works fine. If I send an HTML or RTF (Rich Text Format) email from Outlook, I get the text of the message body twice. Changing between the text/plain and text/html setting in wp-mail doesn’t seem to have any effect.
I can show you examples of each if you’d like.
June 7th, 2005 at 12:00 pm
So, what can I do if my file is .jpg instead of .jpeg? Also, I havenot tried it yet but is there a control to avoid overwriting someone elses’s photo of the same name? Otherwise whoo hoo, very cool.
June 7th, 2005 at 1:50 pm
As for .jpg vs jpeg - that shouldn’t change the mime type which is what the module reads. If I’m wrong let me know and I can add tests for for jpg.
As for overriding - the filename is based on the current timestamp plus a number - it tries 1000 different numbers until it finds one that isn’t in use. So basically as long as you don’t send in 1000 pics at once the script will keep them all and not allow them to clobber each other.
June 7th, 2005 at 3:32 pm
Well, when sending an email from my computer, .jpg’s would arrive to wp-filez but only visible as links, not in the placeholders inside the text. When I changed the file name to .jpeg, the same emails would correctly appear in the placeholders.
Also, can anyone run the wp-mail.php script?
June 8th, 2005 at 4:35 pm
My 3gp clips are showing up as links instead of in the placeholder. Is this normal? http://blog.sirkevi.com/ I was not sure from the explanation.
June 9th, 2005 at 11:02 am
Hello again, I don’t think I can edit my previous message so I will add another one :) I have noticed that all of my email posts are getting a category that does not exist… uncategorized. I had renamed Uncategorized to General in my Word Press setup but the emails still get the old name. My default post category and the default email category both say General. Any ideas.
June 9th, 2005 at 5:56 pm
I haven’t had a chance to look into your jpg issue - but should this weekend.
As for the 3gp clips - that is exactly how it works. I would like to be able to tumbnail it - but I haven’t been able to get all the tools to work so for now you just get a link to the movie.
Hmm that’s weird on the posting. I have mine set to Moblog and it works. Just out of curiosity do you have more than one general category in the pull down list?
Also what version of WP are you running?
June 9th, 2005 at 10:01 pm
Hello,
Any update to the issue that I mentioned on 5/31? You had asked me for the email in raw format, which I sent to you on the same day.
June 10th, 2005 at 2:25 am
Thanks HeadGeek, overall it works great. I love being able to send in things by email with a small photo attached. Good job renaming the graphics, it will help when it is time to clean up that folder.
Yeah, I don’t know what you could use to show 3gp… quicktime, real player, maybe the link is better or you’d have a page of videos running at the same time.
I am running the 1.512 Wordpress and for the moment there is only one catagory, Uncategorized named General. Maybe I should just delete the old original one and make a new one.
An overall issue is that anyone can run the wp-mail script. I was just thinking if someone wanted to run a denial of service against me that would be a great way to do it.
When sending from Outlook Express I also get the double text issue. It would be nice if I could simply say text and only text. I don’t know if I like the idea of people submitting HTML, espeically if it is showing up twice. Maybe I did not see a configuration option.
Regardless, thanks for the ongoing work on this, it is really great.
June 10th, 2005 at 6:16 am
Sorry, my last message was not clear, if the user sends plain text only, that arrives fine as described by Rich. If I send as HTML from Outlook, then I get the dounle output.
June 10th, 2005 at 8:10 am
Rich - yes I have your sample mail. I just haven’t had time to sit doesn and trouble shoot what is going on with the duplication. I’m hoping to get to it this weekeend.
Shawn - the douplication is a known issue that I’m hoping to work on this weekend. As for allowing HTML in the message - there are two options ALLOW_HTML_IN_SUBJECT and ALLOW_HTML_IN_BODY - set these to false to turn off the HTML in the message.
As for the denial of service attack -
1. I’m not sure that it actually puts that much strain on your box to check mail - I suppose it could if someone sent a tone of mail - but that would effect you even if they couldn’t trigger the running of the script.
2. If you are concerned with people being able to execute the wp-mail script you can either a. put it behind a .htaccess file and require a password to check it. or b. run it from the command line using php so it isn’t available from the website at all.
June 10th, 2005 at 10:01 am
Actually it turned out I had some time this morning to look into it - so there is a new version out - let me know if you are still having problems after this.
June 10th, 2005 at 11:39 am
great, I’m on it !
October 2nd, 2005 at 2:11 pm
Anyone send me the zip file? I can’t find where to download this anywhere.