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)) {
foreach ($recipients as $recipient) {
$email = Email::create()
->setHTMLTemplate('email/SubmittedFormEmail')
->setPlainTemplate('email/SubmittedFormEmail');
->setHTMLTemplate('email/SubmittedFormEmailHtml')
->setPlainTemplate('email/SubmittedFormEmailPlain');
// Merge fields are used for CMS authors to reference specific form fields in email content
$mergeFields = $this->getMergeFieldsMap($emailData['Fields']);