Skip to content

Commit

Permalink
Naklonovat email pred zmenou adresata a odesilatele (fixes skaut#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
JindrichPilar committed Oct 15, 2019
1 parent e065bb2 commit 024afae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/model/Mail/MailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function sendRequest(ITemplate $template, $values)
$mail = new Message;
$mail->setHtmlBody($template);
$mail->setSubject("Žádost o registraci aplikace ve skautISu");
$mailUstredi = $mail;
$mailZadatel = $mail;
$mailUstredi = clone $mail;
$mailZadatel = clone $mail;

$mailZadatel->setFrom(self::EMAIL_SENDER);
$mailZadatel->addTo($values->email, $values->username);
Expand Down

0 comments on commit 024afae

Please sign in to comment.