Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • M 27 posts 218 karma points
    May 23, 2019 @ 11:03
    M
    0

    Custom workflow using email template

    I've created a custom workflow to allow me to CC form submissions to an email address using https://our.umbraco.com/forum/umbraco-forms/87822-how-to-add-reply-to-bcc-functionality-to-umbraco-forms as a basis.

    I'd now like to include the "razor email template functionality" of the default workflow. I've added

    [Umbraco.Forms.Core.Attributes.Setting("Email Template", description = "Email template to use", view = "EmailTemplatePicker")]
        public string EmailTemplate { get; set; }
    

    So I've got a picker working now, but I'm not sure how to combine the form submission with the template.

    I've seen this on the forums, but it seems a bit long winded for something that's already built in somewhere.

    Can anybody point me in the right direction?

  • M 27 posts 218 karma points
    Jun 17, 2019 @ 13:26
    M
    100

    Turns out there is an easier way. Within your custom workflow's execute method you can do

    record.ParseWithRazorView(filePath);
    

    Easy when you know how.

Please Sign in or register to post replies

Write your reply to:

Draft