Commit e6b98e52 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Usage of new template to field

parent 6511c10f
......@@ -293,6 +293,7 @@ class BackendService {
$template->setCc($templateData['cc']);
$template->setBcc($templateData['bcc']);
$template->setReplyTo($templateData['replyTo']);
$template->setToAddress($templateData['toAddress']);
if ($templateAlreadyExists) {
$templateRepository->update($template);
......
......@@ -346,6 +346,8 @@ class MailTemplateService {
return FALSE;
}
}
} elseif (filter_var($template->getToAddress(), FILTER_VALIDATE_EMAIL)) {
$this->setToAddresses($template->getToAddress());
}
if ($isPreview) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment