Uploading Images & Converting To Mime for Mail

Discussion in 'PHP' started by natekapi, Dec 23, 2006.

  1. #1
    Does anyone have any example code for uploading an image and converting it to mime for sending via php's mail function?
     
    natekapi, Dec 23, 2006 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    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,
     
    Barti1987, Dec 23, 2006 IP
  3. natekapi

    natekapi Peon

    Messages:
    527
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.

     
    natekapi, Dec 23, 2006 IP
  4. natekapi

    natekapi Peon

    Messages:
    527
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    anyone? should be pretty easy if your good with php or mime.
     
    natekapi, Dec 25, 2006 IP