I try to send email with attachment but it doesn't work

Discussion in 'JavaScript' started by Rafal_s, Nov 25, 2009.

  1. #1
    I try to send email wit attachment but it doesn't work - I have an error or email withought attachement.

    There is the kod below:

     
    Rafal_s, Nov 25, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    so how would you feel if this could work? any webpage can reference any file on your system? of course it won't
     
    dimitar christoff, Nov 25, 2009 IP
  3. Rafal_s

    Rafal_s Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    OK, there is a working program below and i would like to add an attachment.

     
    Rafal_s, Nov 25, 2009 IP
  4. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #4
    You want to add an attachment from the users local system? You can't. And if you cannot see the reason why, then I don't know, read a book or something.
    You CAN create a webform that allows a user to send you an email and attach a file that they specify, but this is a bit more complicated.
     
    camjohnson95, Nov 25, 2009 IP
  5. Rafal_s

    Rafal_s Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So why?

    I would like to do something like this:

    http://img266.imageshack.us/i/att2.jpg/

    First the user choose file, and when he choose the right he will click send button and this file should be attached to the email in the default email client.

    Now don't work only attach this file.
     
    Rafal_s, Nov 25, 2009 IP
  6. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Well,
    1. you could attach a virus to the email and have them send it from there email address.
    2. you could attach a confidential file from their computer and have them send it to you.
    And whatever else anyone can think of, if you get my drift .it would be a huge security issue.
     
    camjohnson95, Nov 25, 2009 IP
  7. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #7
    i'd laugh if today was not the worst day ever... managed to cock up our DB and nuked a whole day worth of work and orders...
     
    dimitar christoff, Nov 25, 2009 IP
  8. Rafal_s

    Rafal_s Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I want to get images from clients in email - in classic email can attach viruses too.
     
    Rafal_s, Nov 26, 2009 IP
  9. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #9
    so do a webform which has a browse that allows them to attach the images. you can't attach files to their mail client, no matter what.
     
    dimitar christoff, Nov 26, 2009 IP