Link to home
Start Free TrialLog in
Avatar of pjbyrne
pjbyrne

asked on

form action:mailto & attachments

Hi ...

I have two questions:

1. How secure and reliable is the method of placing attachments using the form action mailto:? If so, an answer to question 2 would be helpful. If not, other suggestions would be great.

2.What is missing from this code, as I cannot get the data into an email with an attachment.

<form method="post" action="mailto:myname@something.com" enctype="multipart/form-data">
<input type="file" name="attachedimage2" id="attachedimage2" size="40" accept="image/*" style="color: #010425; background-color: #e6e6e6; border-color: #666600; border-color: #b8860b; font-family: verdana; font-size: 10pt" />
</form>

Thanks
ASKER CERTIFIED SOLUTION
Avatar of russellshome
russellshome

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dorward
dorward

(1) Very secure - the file would never leave the users computer. mailto: is horribly unreliable at the best of times, I've never seen it work with file attachments. If it did work (or if you used another method) it would be as secure as email normally is (i.e. not so secure that you would want to send credit card details by it).

(2) A form handler that can actually cope with file attachments.

http://www.cs.tut.fi/~jkorpela/forms/index.html
and
http://www.cs.tut.fi/~jkorpela/forms/file.html

should give you pointers.
Avatar of pjbyrne

ASKER

Thanks. I will look into server side code and the form handler links.