Blog Via Email Test Please
- Started
- Last post
- 28 Responses
- thirtytwo
I was wondering if you guys could test this little app I wrote. It grabs the contents from an email and dumps it into a table, it then saves all JPEGS to a local dir. I currently have all the code in the same page so when the page loads it scans that mailbox. So send an email, then wait a couple of seconds before testing the link. All emails are deleted once the content gets uploaded.
http://www.stocksfoundation.com/…
Cheers,
mark
- stewart0
only the subject appears, not the bodytext i wrote.
my subject was Vormgeversassociatie Hoog-Keppel but the - sign between Hoog and Keppel disappeared.
and the attachement i sent with my email isn't visible.
- ldww0
it posted mine, but the immage is missing. it was a 16x16 gif.
could be that i was sending with Mac Mail, and when you attach an image it put it in the body of the message rather then attach it.
- stewart0
ldw, i attached it using Entourage, didn't work.
- thirtytwo0
I remove all char except Aa - Zz.
The image attachment came over with out an extension that's why it did not show up.
stewart- What was the attachment that you sent?
- ldww0
fyi: the file has an extension on my computer.
- stewart0
again no image.
this time it was called test.jpg
and no bodytext too...
using mac os 10.3 and entourage
- thirtytwo0
stewart-
can you try again, I removed the delete email, and the MySQL insert. I want to see how the systems see an email from entourage. Can you add the test.jpg and also some copy in the body.
Thanks, I really appreciate this...
- thirtytwo0
ldww-
Can you send that email again. I thought I have this thing working.
Thanks.
- ldww0
i posted two emails, one from mail client and one from webmail client. both with same image.
- weestu0
my post worked and image uploaded too. sent via gmail. nice app!
- UndoUndo0
sometimes files from mac do not contain the file type as part of the filename and you need to read the file to get the extension. maybe this is the problem?
are you using
mime_content_type ( string filename ); to read the file?
- UndoUndo0
I can across this before so I thought I would spread the knowledge, good job you found the bug tho as you might of been able to send in attachments like nastyVirus.exe.jpg to mess with the system.
good app tho dude!
- thirtytwo0
once I get it working, I will spread the wealth. I plan on adding this to a CMS system I have been working on.
- thirtytwo0
Ok, I am ready for round two...
Give it a go.
http://www.stocksfoundation.com/…
If your attachment does not show up let me know.
- ldww0
worked on mail w/ Mail.
but is it supposed to crop the picture?
- thirtytwo0
The image is not really cropped like that. I am just doing that for the blog, so no one send a desktop image. When the page loads I create a cropped image from the original image.
- ldww0
everytime the page is loaded it makes a new cropped image? does it cache them?
- thirtytwo0
It creates the new image, the next time the page load it checks to see if the file exists. If exists don’t create new image.
- jevad0
Dude - that's really awesome