-
Notifications
You must be signed in to change notification settings - Fork 1
Service
TLA edited this page Jul 6, 2018
·
2 revisions
This class extends TYPO3's own mailing possibilities.
/** @var \Xima\XmTools\Service\SendMail $sendMail */
$sendMail = $this->objectManager->get(SendMail::class);
$sendMail->setMailContentType('text/html');
$sendMail->sendTemplateEmail(
[{recipient e-mail} => {recipient name}],
[{sender e-mail} => {sender name}],
{subject},
GeneralUtility::getFileAbsFileName({path to template}),
[
'{parameter}' => {parameter},
],
[],
[],
[GeneralUtility::getFileAbsFileName({layout root path})],
[GeneralUtility::getFileAbsFileName({partial root path})]
);
To send an e-mail with an attachment
$sendMail->setAttachment({path to file});
by XIMA MEDIA GmbH