diff --git a/Classes/Controller/FormController.php b/Classes/Controller/FormController.php index 5a97d31..1e8e723 100755 --- a/Classes/Controller/FormController.php +++ b/Classes/Controller/FormController.php @@ -1,20 +1,23 @@ getAnswers() as $answer) { if ($answer->getValue() === 'alex') { $answer->setValue('alexander'); diff --git a/Classes/Domain/Service/SendMailService.php b/Classes/Domain/Service/SendMailService.php new file mode 100644 index 0000000..7161c21 --- /dev/null +++ b/Classes/Domain/Service/SendMailService.php @@ -0,0 +1,31 @@ +setTo( + array( + 'anotheremail@domain.org' => 'receiverName' + ) + ); + } +} diff --git a/ext_localconf.php b/ext_localconf.php index a549ba7..3e786ae 100755 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -1,10 +1,25 @@ get('TYPO3\\CMS\\Extbase\\SignalSlot\Dispatcher'); + +// Manipulate a value before sending //$signalSlotDispatcher->connect( // 'In2code\Powermail\Controller\FormController', // 'createActionBeforeRenderView', // 'In2code\Powermailextended\Controller\FormController', // 'manipulateMailObjectOnCreate', // FALSE +//); + +// Change receiver mail +//$signalSlotDispatcher->connect( +// 'In2code\Powermail\Domain\Service\SendMailService', +// 'sendTemplateEmailBeforeSend', +// 'In2code\Powermailextended\Domain\Service\SendMailService', +// 'manipulateMail', +// FALSE //); \ No newline at end of file