Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- namespace SaschaEnde\T3helpers\Utilities;
- class Mail implements MailInterface, \TYPO3\CMS\Core\SingletonInterface
- {
- public function send($recipient, $senderEmail, $senderName, $subject, $emailBody, $attachments = [])
- {
- $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Mail\\MailMessage');
- $message->setTo($recipient)->setFrom([$senderEmail => $senderName])->setSubject($subject);
- $message->setBody($emailBody, 'text/html');
- foreach ($attachments as $filename => $path) {
- .....................................................................
- ..........................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement