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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can get file attachments but no other form results HELP

Status
Not open for further replies.

richiwatts

Technical User
Jun 21, 2002
180
GB
Please help!

I am very new to ASP and have come a bit unstuck. I have now spent 4 days trying to get this right and my boss isn't happy.

Anyway, I we have a form that I created at

The problem is I only receive the attachments in the e-mail results and no other form field results. Below I have shown the code of the ASP page I am sending the form to in the hope that someone can tell me what to do.

I thank you in advance for any help you can provide:

<%
Dim objUpload
Dim objEmail
Dim strPath
Dim Index
On Error Resume Next
Set objUpload = Server.CreateObject(&quot;Dundas.Upload&quot;)
Set objEmail = Server.CreateObject(&quot;Dundas.Mailer&quot;)
strPath = Server.MapPath(&quot;.&quot;) & &quot;\temp\&quot;
objUpload.DirectoryCreate strPath
objUpload.Save strPath
objEmail.TOs.Add &quot;info@english-partner.com&quot;
objEmail.Subject = &quot;Quotation&quot;
objEmail.SMTPRelayServers.Add &quot;mail.vegasys.net&quot;
objEmail.Body = &quot;Please provide a quote&quot;
For Each Item in objUpload.Files
objEmail.Attachments.Add Item.Path,Item.OriginalPath
Next
objEmail.SendMail
If Err.Number <> 0 Then
Response.Write &quot;The following error occurred: &quot; & Err.Description
Else
Response.Write &quot;A quotation request has successfully been sent to English Partner, thank you.&quot;
End If
Set objEmail = Nothing
Set objUpload = Nothing
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top