Xforms - bcc mail to the person filling out the form.

Vote:
 
We have forms for course registration, and would like to send an confimation email to the user, when sending the form. Is there any solution for this? To take the email adress from the email field filled in by the user and have a mailto: function in addition to the predefined email to us and the database. Uses Episerver4.6x Arnfinn Amundsen Norway
#13339
Mar 25, 2008 18:36
Vote:
 
Yes, you can do this using the events in the xform but you need to know the name of the inputfield containing the emailaddress. Attach to the AfterSubmitPostedData event like this: FormControl.AfterSubmitPostedData += new SaveFormDataEventHandler(FormControl_AfterSubmitPostedData); In your method you can check if the form is sent: if (FormControl.FormDefinition.IsSent) { string emailaddress = e.FormData.GetValue("Epost"); }
#15619
Mar 25, 2008 18:47
* 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.