Allow userforms email to be injectable
This commit is contained in:
parent
8e189c2c49
commit
3077a64b3c
|
@ -578,7 +578,7 @@ JS
|
|||
// email users on submit.
|
||||
if ($recipients = $this->FilteredEmailRecipients($data, $form)) {
|
||||
foreach ($recipients as $recipient) {
|
||||
$email = new UserFormRecipientEmail($submittedFields);
|
||||
$email = UserFormRecipientEmail::create($submittedFields);
|
||||
$mergeFields = $this->getMergeFieldsMap($emailData['Fields']);
|
||||
|
||||
if ($attachments) {
|
||||
|
|
Loading…
Reference in New Issue