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:
so how would you feel if this could work? any webpage can reference any file on your system? of course it won't
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.
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.
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.
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...
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.