mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #900 from scott1702/feature/pulls/4.6/injectable-emails
Allow userforms email to be injectable
This commit is contained in:
commit
c553da73c4
@ -578,7 +578,7 @@ JS
|
|||||||
// email users on submit.
|
// email users on submit.
|
||||||
if ($recipients = $this->FilteredEmailRecipients($data, $form)) {
|
if ($recipients = $this->FilteredEmailRecipients($data, $form)) {
|
||||||
foreach ($recipients as $recipient) {
|
foreach ($recipients as $recipient) {
|
||||||
$email = new UserFormRecipientEmail($submittedFields);
|
$email = UserFormRecipientEmail::create($submittedFields);
|
||||||
$mergeFields = $this->getMergeFieldsMap($emailData['Fields']);
|
$mergeFields = $this->getMergeFieldsMap($emailData['Fields']);
|
||||||
|
|
||||||
if ($attachments) {
|
if ($attachments) {
|
||||||
|
Loading…
Reference in New Issue
Block a user