|
|
|
|
|
|
|
|
if (isset($params[self::CONTENT_DATA])) { |
|
|
if (isset($params[self::CONTENT_DATA])) { |
|
|
$contentData = $params[self::CONTENT_DATA]; |
|
|
$contentData = $params[self::CONTENT_DATA]; |
|
|
} |
|
|
} |
|
|
dump($emailFrom); |
|
|
|
|
|
|
|
|
|
|
|
$message->addFrom($emailFrom, $emailFromName) |
|
|
$message->addFrom($emailFrom, $emailFromName) |
|
|
->setBody($this->templating->render($params[self::CONTENT_TEMPLATE] . '-html.html.twig', $contentData), 'text/html') |
|
|
->setBody($this->templating->render($params[self::CONTENT_TEMPLATE] . '-html.html.twig', $contentData), 'text/html') |
|
|
->addPart($this->templating->render($params[self::CONTENT_TEMPLATE] . '-text.html.twig', $contentData)); |
|
|
->addPart($this->templating->render($params[self::CONTENT_TEMPLATE] . '-text.html.twig', $contentData)); |