|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
file attachment
my name is farhan.
i have a domain. but with cdonts file attachment method is not working. i want to create a form. user can seletec a file on his computer and then submit it. after this i received a message from user and also a file attachment by the user. but i have no idea more after cdonts not proper working. plz give me the helpful detail code. |
|
#2
|
||||
|
||||
|
What is your code so far?
|
|
#3
|
|||
|
|||
|
my first page is that
<html> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <form name="form1" method="post" action="test.asp"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> <td> <input type="file" name="getName"> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> <input type="submit" name="Submit" value="Submit"> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </form> </td> </tr> </table> </body> </html> next page is that <% Dim Emfrom Dim Emsub Dim Emto Dim Emcc Dim Embcc Dim Embody Dim Emattach Emfrom = "smile4u_782002@hotmail.com" Emsub = "Attach" Emto = "smile4u_782002@hotmail.com" Emcc = "" Embcc = "" Embody = "hello" Emattach = "Request.Form("GetName")" Dim ObjCdo Set ObjCdo = Server.CreateObject("CDONTS.NewMail") ObjCdo.From = Emfrom ObjCdo.Subject = Emsub ObjCdo.To = Emto ObjCdo.cc = Emcc ObjCdo.bcc = Embcc ObjCdo.body = Embody ObjCDO.AttachFile(Emattach) ObjCdo.send Set ObjCdo = nothing %> ***----------------------------------------------------------------------- at objcdol.attachfile(emattach) there is an unspecified error so can u help me plz |
|
#4
|
||||
|
||||
|
You aren't actually uploading the file the way it is now. You need to make an upload script.
http://www.aspalliance.com/Michiel/uploadscript.asp has one. These wouldn't happen to be images you're uploading.... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > file attachment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|