We've created a custom email workflow that attaches an image file generated from some base64 data we have within the form submission, building on the default send email source code provided by Tim here:
However, we would like to use an email template for our submission, as per the existing 'Send email with template (Razor)' workflow approach. In the absence of any source code, does anyone know how this might be done?
Using a template in a custom email workflow
We've created a custom email workflow that attaches an image file generated from some base64 data we have within the form submission, building on the default send email source code provided by Tim here:
https://gist.github.com/TimGeyssens/6ff5392c4d9bbf89bdfc
However, we would like to use an email template for our submission, as per the existing 'Send email with template (Razor)' workflow approach. In the absence of any source code, does anyone know how this might be done?
Any advice would be very gratefully received :-)
Comment author was deleted
Not sure what code Forms uses but you could take a look at this code: https://github.com/TimGeyssens/MCFly/blob/master/MCFly/Controllers/MCFlyEntriesController.cs#L144
Comment author was deleted
you'll also need to look at this file https://github.com/TimGeyssens/MCFly/blob/master/MCFly/Core/EmailRenderer.cs
Thank you Tim - that looks useful.
is working on a reply...