November Happy Hour will be moved to Thursday December 5th.

Form/File upload - getting to attach to email

Vote:
 

Hello,

I have managed to get it so that a user can choose a file to upload to a form, and it is even appearing in my new VPP folder.

However in the email, it just says "Upload FileUploaded" for that field.

It says I need to Just attach to the BeforeSubmitPostedData event 
Check if ((e.FormData.ChannelOptions & ChannelOptions.Email) != ChannelOptions.Email) is true 
then send the custom mail and remove the send mail option 
e.FormData.ChannelOptions &= ~ChannelOptions.Email;

in the instructions, but can anyone break that down further for me, as im still in process of learning the code.

Many Thanks

Marc.

#71564
May 22, 2013 15:08
Vote:
 
#71601
May 23, 2013 22:47
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.