London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Confirmation mail after a form has been filled in

Vote:
 
Hello!

We would like to send a confirmation mail to a user that has filled in a form, in addition to showing a "thank you"-page. Unfortunalety this is not an intranet site where users have logged in and where we have user information like email address. The user has to enter his/her email when filling in the form.

But, how can I access this information? If we assume that all forms contain a mandatory field "epost". Is there an easy way to get the content of this field when the form is posted? (Or possibly afterwards, from the "thank you"-page)

All suggestions are welcome.

/Mårten

#22477
Aug 06, 2008 17:10
Vote:
 

Yes, if you're using an HTML textfield:

string email = Request.Form["epost"];

or if you're using an ASP.NET TextBox:

string email = epost.Text;

Then:

Response.Redirect ("/path to thank-you page")

 

#22916
Aug 20, 2008 16:51
Vote:
 

I think this could be something you're looking for:

http://world.episerver.com/en/Download/Code-Samples/XForms/Send-custom-email/

/Björn

#23005
Aug 23, 2008 17:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.