Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
You could extend ActorsExecutingService
and override GetFormSubmissionActors
.
In the override, you could call:
base.GetFormSubmissionActors(submission, formContainer, formIden, request, response, isFormFinalizedSubmission).ToList();
Then check if the returned list contains a SendEmailAfterSubmissionActor
. If it does, check the submitted data, and update the EmailTemplateActorModel
's property ToEmails
, and return the list.
Finally tell Episerver to use your implementation instead of ActorsExecutingService
. Can be done using StructureMap.
Hi
It woud be great to be able to send different emails based on the values submitted on a form. For example if a user selects an Enquiry Type of 'Complaint' they would receive a different automated reply to a user that submitted 'General Feedback'.
Cheers
Jonathan.