Link to home
Start Free TrialLog in
Avatar of prabhuram
prabhuram

asked on

How to include Mail Attachments??

In my Web designing (email prog), i want
to include the basic facilities. In that, i  dont
know how to attach files with the messages..
I wan a Html code for attaching the file contents
with the mail..
 how can i get the file contents of the remote user's
hard disk?? if possible, give me the java code.
Avatar of DreamMaster
DreamMaster

it will be very hard to do that using javascript..

the problem is that i don't know what You are using...do You have a IIS server(Internet Information Server)? cause this can't accept files..

normally You would use the following though...

<form name="yourformsname" method="post" enctype="multipart/form-data">

to get the user to browse for a file use :

<input type="file" name="whatever">

then use all the input fields, and that should normally do the trick, however like i said...not with IIS...

good luck.

Max Davidse
http://www.thekitchen.nl
ASKER CERTIFIED SOLUTION
Avatar of dill51
dill51

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
dill51,

duh....read the question....then when You DO know the answer, You might answer, the normal way of working however is that You give a comment, meaning it's a suggestion to the possible solution, only if You're sure as to whether or not You know the answer, give an answer. Otherwise please stick to comments...

This is NOT the answer!

Max Davidse