FIX: Fixes #814 Changed code referencing email template.

This commit is contained in:
Luke Amos 2019-01-16 11:02:04 +13:00
parent 4931d94ad6
commit 490d05a3e8

View File

@ -290,8 +290,8 @@ JS
if ($recipients = $this->FilteredEmailRecipients($data, $form)) { if ($recipients = $this->FilteredEmailRecipients($data, $form)) {
foreach ($recipients as $recipient) { foreach ($recipients as $recipient) {
$email = Email::create() $email = Email::create()
->setHTMLTemplate('email/SubmittedFormEmail') ->setHTMLTemplate('email/SubmittedFormEmailHtml')
->setPlainTemplate('email/SubmittedFormEmail'); ->setPlainTemplate('email/SubmittedFormEmailPlain');
// Merge fields are used for CMS authors to reference specific form fields in email content // Merge fields are used for CMS authors to reference specific form fields in email content
$mergeFields = $this->getMergeFieldsMap($emailData['Fields']); $mergeFields = $this->getMergeFieldsMap($emailData['Fields']);