SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: EMail Completed Form ?
-
Dec 30, 2006, 09:54 #1
- Join Date
- May 2004
- Location
- Canada
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
EMail Completed Form ?
Good Day;
I've designed a form and would like to send the form, when completed by the user, via e-mail. I've been successful in sending the blank form using this approach:
Set testMail=CreateObject("CDO.Message")
testMail.Subject=" Subject "
testMail.From="mail@abcd.com"
testMail.To="anotheremail@abcd.com"
testMail.CreateMHTMLBody "http://www.abcd.com/Filename.asp"
testMail.Send
set testMail=nothing
However, I haven't been able to pass any values to complete the form when emailed in this way even though the form when run from the server through a browser accepts and displays the values. If anyone can help with this I'd appreciate.
I've also considered trying to print the completed form to a file on the server and then send the file as an attachment to the e-mail but I've only been able to print the file to the client computer. Any thoughts here?
I like to retain the HTML layout of the form in the e-mail or attachment and so just passing on the values in text is not a desirable option.
Thank you.
Bill
p.s. I notice this forum alows the attachment of files but I don't see how to attach them.
-
Dec 30, 2006, 10:22 #2
- Join Date
- May 2004
- Location
- Canada
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sorry, I've solved the problem
I guess I just hadn't tried the right way to do it but this seems to send the completed form via e-mail.
testMail.CreateMHTMLBody "http://www.abcd.com/Filename.asp?"&RequestQueryString
Thanks for reading.
Bill
-
Dec 31, 2006, 00:30 #3
- Join Date
- Dec 2006
- Posts
- 8
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
why not do this:
Code:testMail.ContentType = "text/html" testMail.BodyText="SOME HTML BODY"
-
Dec 31, 2006, 09:02 #4
- Join Date
- May 2004
- Location
- Canada
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bookmarks