Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending an attachement with a form

Status
Not open for further replies.

Garabaldi

Technical User
Jan 16, 2002
61
CA
Folks,

I'm trying to get an HTML form to send an attachment. So I've written the following html code which looks perfectly a okay to me:

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>

<BODY>
<form method=&quot;post&quot; action=&quot;mailto:mail.me@mailaddress.com?subject=attachment&quot; enctype=&quot;multipart/form-data&quot;>

Local file:&nbsp;&nbsp;<input type=&quot;file&quot; name=&quot;bobo&quot; size=&quot;32&quot;>
<p>
<input type=&quot;submit&quot;>
</form>


</BODY>
</HTML>

When I mail this form off to myself with an excel spreadsheet attached it does not open up. Excel tells me the spreadsheet is corrupt.

Can anyone out there tell me if I'm doing something wrong???

Thanks!!!
 
The only problem with CDONTS is that you require access to the mail server which I don't have. Also I'm trying to stay away from ASP code as I'm writting this for a novice user and want to give them something which they can handle on their own.

Any idea as to why the file is coming up as corrupt???

Thanks,
 
I recently needed to set up a form so that people could send graphic files from a web form. The solution I chose was
I figured if I paid for the script, at least it would be quicker to implement and it would work. It did both of these, and also allowed me to spam-proof the form, however as it was written by a nerd, all fields are received in alpha order.

An alternative I didn't try -
Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top