Does anyone have any example code for uploading an image and converting it to mime for sending via php's mail function?
I did this script a while ago, it has the feature to send attachments via the mail function. Take a look at it and see if you can use it. Systems like Gmail will show a preview of the image if known type (GIF/JPEG..) http://www.free-php-scripts.net/P/Contact_Form Peace,
I couldn't get yours to work properly. For some reason all the other free ones I found on the net don't work properly either when I send messages to my cell phone. I can only do it properly from Gmail. I found this script and it seemed like it was going to do the job and I was really excited about it because it's so basic. But for some reason it doesn't work right. I think the headers are a little off. If someone can make something like this code below, that works properly for me, i'll give you some money via PayPal!! If you want me to past you the mime headers from Gmail, from a message that worked properly, I can do that as well.