Skip to content

Commit

Permalink
fix email alert
Browse files Browse the repository at this point in the history
  • Loading branch information
magnussolution committed Apr 28, 2023
1 parent 91997f9 commit e0d7cb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion protected/components/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ public function send($to_email = null)
$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!';
$mail->MsgHTML($this->message);
$mail->AddAddress($this->to_email);
$mail->AddAddress($this->to_email2);
if (strlen($this->to_email2)) {
$mail->AddAddress($this->to_email2);
}
$mail->CharSet = 'utf-8';
ob_start();
@$mail->Send();
Expand Down

0 comments on commit e0d7cb5

Please sign in to comment.