|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace domain\Communication\Email; |
|
|
namespace domain\Communication\Email; |
|
|
|
|
|
|
|
|
use common\helpers\GlobalParam; |
|
|
|
|
|
use common\helpers\Price; |
|
|
use common\helpers\Price; |
|
|
use domain\_\AbstractResolver; |
|
|
use domain\_\AbstractResolver; |
|
|
use domain\Communication\AutomaticEmail\AutomaticEmail; |
|
|
|
|
|
use domain\Config\Unit\UnitDefinition; |
|
|
use domain\Config\Unit\UnitDefinition; |
|
|
use domain\Distribution\Distribution\Distribution; |
|
|
use domain\Distribution\Distribution\Distribution; |
|
|
use domain\Distribution\Distribution\DistributionSolver; |
|
|
use domain\Distribution\Distribution\DistributionSolver; |
|
|
|
|
|
|
|
|
$fromName = $producer->name ; |
|
|
$fromName = $producer->name ; |
|
|
|
|
|
|
|
|
$linkProducer = 'https://'.$producer->slug.'.souke.fr'; |
|
|
$linkProducer = 'https://'.$producer->slug.'.souke.fr'; |
|
|
//$linkUnsubscribe = \Yii::$app->urlManagerProducer->createAbsoluteUrl(['newsletter/unsubscribe', 'slug_producer' => $producer->slug]); |
|
|
|
|
|
$linkUnsubscribe = ''; |
|
|
|
|
|
|
|
|
$linkUnsubscribe = \Yii::$app->urlManagerProducer->createAbsoluteUrl(['newsletter/unsubscribe', 'slug_producer' => $producer->slug]); |
|
|
|
|
|
|
|
|
// Message inscription newsletter |
|
|
// Message inscription newsletter |
|
|
$messageAutoText .= " |
|
|
$messageAutoText .= " |