|
Subject:
|
forms
|
|
Posted By:
|
tuliom
|
Post Date:
|
9/19/2003 11:07:25 AM
|
Hi I noticed the book doesn't show how to send forms data to an email address. Would it be possible to explain how to send a very simple form (email, comments) using aspMail components. I went to their website, but it only explains how to send email from a page. Your help would be greatly apprecciated. Thanks
|
|
Reply By:
|
Imar
|
Reply Date:
|
9/19/2003 11:33:18 AM
|
Hi there,
Well, using the docs on the AspEmail site in combination with the book, it shouldn't be too difficult. Take the following example from the AspEmail website:
Mail.From = "sales@mycompany.com" ' Required Mail.FromName = "Sales Department" ' Optional Mail.AddAddress "jsmith@company1.com", "John Smith" Mail.AddCC "bjohnson@company2.com" ' Name is optional Mail.Subject = "Sales Receipt"
Instead of using these hard coded values, just retrieve them from the form:
Mail.Subject = Request.Form("txtSubject") Mail.AddAddress Request.Form("txtEmailAddress")
You may need to check these values before you actually send the e-mail to make sure they contain valid information.
Does this help?
Cheers,
Imar
--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|
|
Reply By:
|
tuliom
|
Reply Date:
|
9/19/2003 4:32:00 PM
|
Thanks so much for your help!! I figured it out. I really thank you for your quick response. I have a question about the book. Chapter 13, page 457. Bullet 7. When I click ok...I'm getting the following error message:
"Server behavior was not apply. Could not find a valid xml file that refers to the current server behavior and the current server model."
I'm using a remote server. They meet all the requirements the book mentions. Any ideas? Thanks again...by the way....phenomenal book!! u guys did a great job!!
|
|
Reply By:
|
Imar
|
Reply Date:
|
9/20/2003 5:15:43 PM
|
Hi there,
Sorry for answering a little late. Didn't see your post earlier.
I am not quite sure what can cause this error; I haven't run into it myself before. The only references to this problem I found were related to extensions. Did you install any extensions for Dreamweaver?
You may also need to check your Configuation files. Dreamweaver stores quite a lot of settings in XML files in both the Program Files folder as in the Documents and Settings folder. Maybe something got deleted or changed.
Typical helpdesk answer: Try reinstalling (backup your config folders, uninstall, remove the configuration folders and then reinstall); hopefully this will fix things.
Cheers,
Imar
--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|