Skip to content
Snippets Groups Projects
Commit a8c4a6f5 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #14064 : fix RT

parent 42cb776f
Branches
Tags
2 merge requests!945Dev #14064 newsletter sendmail,!933Dev #14064 newsletter sendmail
<?php echo $this->openBoite($this->_('Désinscription'));?>
<p>
<?php echo $this->_('Le courriel "%s" a bien été désinscrit de la lettre d\'information "%s" ?', $this->mail, $this->letter); ?>
</p>
<?php echo $this->closeBoite();?>
<?php
echo $this->openBoite($this->_('Désinscription'))
. $this->tag('p', $this->_('Le courriel "%s" a bien été désinscrit de la lettre d\'information "%s" ?',
$this->mail,
$this->letter))
. $this->closeBoite();
?>
<?php echo $this->openBoite($this->_('Désinscription'));?>
<?php
echo $this->openBoite($this->_('Désinscription'));
<ul class="errors">
<li><?php echo $this->_('La lettre d\'information ou le courriel n\'ont pas été retrouvés.');?></li>
</ul>
echo $this->tag('ul',
$this->tag('li', $this->_('La lettre d\'information ou le courriel n\'ont pas été retrouvés.')),
['class' => 'errors']);
<?php echo $this->closeBoite(); ?>
echo $this->closeBoite();
?>
......@@ -66,11 +66,10 @@ class Class_Batch_SendNewsletters extends Class_Batch_Abstract {
if (!$this->_newsletter)
return;
$mock_user=new Class_Entity();
$mock_user = new Class_Entity();
$mock_user->setId(0)->setMail($email);
$letter = $this->_newsletter;
$this->_template_mail=$letter->newTemplate();
$this->_template_mail = $this->_newsletter->newTemplate();
$this->_sendPage([$mock_user]);
}
......@@ -118,12 +117,9 @@ class Class_Batch_SendNewsletters extends Class_Batch_Abstract {
protected function _sendPage($receivers) {
foreach($receivers as $receiver) {
$letter = $this->_newsletter;
$mail = $letter->newMailFromTemplate($this->_template_mail,$receiver);
$this->_sendTo($receiver,$mail);
$mail = $this->_newsletter->newMailFromTemplate($this->_template_mail, $receiver);
$this->_sendTo($receiver, $mail);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment