|
|
|
|
|
|
|
|
const SUBJECT = 'subject'; |
|
|
const SUBJECT = 'subject'; |
|
|
const SUBJECT_PREFIX = 'subject-prefix'; |
|
|
const SUBJECT_PREFIX = 'subject-prefix'; |
|
|
const TO_EMAIL = 'to-email'; |
|
|
const TO_EMAIL = 'to-email'; |
|
|
|
|
|
const COPY_TO = 'copy-to'; |
|
|
|
|
|
const COPY_HIDDEN_TO = 'copy-hidden-to'; |
|
|
const TO_NAME = 'to-name'; |
|
|
const TO_NAME = 'to-name'; |
|
|
const FROM_EMAIL = 'from-email'; |
|
|
const FROM_EMAIL = 'from-email'; |
|
|
const FROM_NAME = 'from-name'; |
|
|
const FROM_NAME = 'from-name'; |
|
|
|
|
|
|
|
|
->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)); |
|
|
|
|
|
|
|
|
|
|
|
if (isset($params[self::COPY_TO]) && strlen($params[self::COPY_TO])) { |
|
|
|
|
|
$message->addCc($params[self::COPY_TO]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (isset($params[self::COPY_HIDDEN_TO]) && strlen($params[self::COPY_HIDDEN_TO])) { |
|
|
|
|
|
$message->addBcc($params[self::COPY_HIDDEN_TO]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($params[self::REPLY_TO]) && strlen($params[self::REPLY_TO])) { |
|
|
if (isset($params[self::REPLY_TO]) && strlen($params[self::REPLY_TO])) { |
|
|
$message->addReplyTo($params[self::REPLY_TO]); |
|
|
$message->addReplyTo($params[self::REPLY_TO]); |
|
|
} |
|
|
} |