I want to alter the format of the email that goes out from XForms. Now, I've read up on this and reflected like crazy, and I understand that I can just send my own email out of the AfterSubmitPostedData event.
But how do I stop the XForm code from also sending an email? I just need to tell the XForm, "Don't worry, I sent the email, you don't have to."
Alter e.FormData.ChannelOptions and remove ChannelOptions.Email.
According to this article you have to change it in BeforeSubmitPostedData.