diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index b9ecb45..0230f08 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -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) {