mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX: Fixes #814 Changed code referencing email template.
This commit is contained in:
parent
4931d94ad6
commit
490d05a3e8
@ -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']);
|
||||||
|
Loading…
Reference in New Issue
Block a user