Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Changing email sender in XForm

Vote:
 

Been trying to set the email adress sender when submitting an XForm, due to the reason that the reciver of the email can't distinguish who sent the form without some hassle with the Excel-export etc.

1. Changing FormDefinition.MailFrom won't work.

2. Changing the Submit Sender property in XForm_BeforeSubmitPostedData won't work due to getter only.

Any ideas?

#66562
Mar 05, 2013 10:10
Vote:
 

Does this not work?

private static void XForm_BeforeSubmitPostedData(object sender, SaveFormDataEventArgs e)
{
    e.FormData.MailFrom = "my@email.address";
}

#66648
Mar 06, 2013 9:32
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.