Commit dd791561 by Denis Chenu

[fix] message and subject updated by beforeTokenEmail event

parent 3f9d74b6
Showing with 5 additions and 4 deletions
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
Only partial changelog, [commit history](https://framagit.org/SondagePro-LimeSurvey-plugin/sendMailCron/commits/master) show all changelog. Only partial changelog, [commit history](https://framagit.org/SondagePro-LimeSurvey-plugin/sendMailCron/commits/master) show all changelog.
## Not released [0.3.2] ## [0.4.0] - 2017-03-16
### Fix ### Fix
- Send after reminder tested - Send after reminder tested
- message and subject updated by beforeTokenEmail event
## [0.3.1] - 2017-03-16 ## [0.3.1] - 2017-03-16
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* @copyright 2016 AXA Insurance (Gulf) B.S.C. <http://www.axa-gulf.com> for initial version * @copyright 2016 AXA Insurance (Gulf) B.S.C. <http://www.axa-gulf.com> for initial version
* @copyright 2016-2017 Extract Recherche Marketing for cronTypes and BatchSize * @copyright 2016-2017 Extract Recherche Marketing for cronTypes and BatchSize
* @license AGPL v3 * @license AGPL v3
* @version 0.3.2 * @version 0.4.0
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by * it under the terms of the GNU Affero General Public License as published by
...@@ -778,8 +778,8 @@ class sendMailCron extends \ls\pluginmanager\PluginBase ...@@ -778,8 +778,8 @@ class sendMailCron extends \ls\pluginmanager\PluginBase
$beforeTokenEmailEvent->set('bounce', $sBounce); $beforeTokenEmailEvent->set('bounce', $sBounce);
$beforeTokenEmailEvent->set('token', $oToken->attributes); $beforeTokenEmailEvent->set('token', $oToken->attributes);
App()->getPluginManager()->dispatchEvent($beforeTokenEmailEvent); App()->getPluginManager()->dispatchEvent($beforeTokenEmailEvent);
$modsubject = $beforeTokenEmailEvent->get('subject'); $subject = $beforeTokenEmailEvent->get('subject');
$modmessage = $beforeTokenEmailEvent->get('body'); $message = $beforeTokenEmailEvent->get('body');
$aTo = $beforeTokenEmailEvent->get('to'); $aTo = $beforeTokenEmailEvent->get('to');
$sFrom = $beforeTokenEmailEvent->get('from'); $sFrom = $beforeTokenEmailEvent->get('from');
$sBounce = $beforeTokenEmailEvent->get('bounce'); $sBounce = $beforeTokenEmailEvent->get('bounce');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment