navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

(formmail) I get attachment but no other form results

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> (formmail) I get attachment but no other form results
Page: [1]
 
contactcp

 

Posts: 167
From: None
Status: offline

 
(formmail) I get attachment but no other form results - 7/21/2002 9:28:41   
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
http://www.english-partner.com/scripts/quotations.asp

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

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: (formmail) I get attachment but no other form results - 7/21/2002 17:16:16   
Youll need to add each form input to the email :


For i=1 To request.form.count
    sMessage = sMessage & request.form.key(i) & " : "  & request.form.item(i) & vbCrLf
Next

objEmail.Body = " Please provide a quote for "  & vbCrLf & sMessage 



_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to contactcp)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> (formmail) I get attachment but no other form results
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts