mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
FIX: outdated swift mailer breaking mails formating
This commit is contained in:
parent
914ad595f0
commit
2875a006c8
@ -28,7 +28,7 @@ class MailerFix extends Email
|
||||
|
||||
private static function convertVars($mails)
|
||||
{
|
||||
return is_array($mails) ? implode(' ', $mails) : $mails;
|
||||
return is_array($mails) ? implode(',', $mails) : $mails;
|
||||
}
|
||||
|
||||
private function loadDetails()
|
||||
@ -50,7 +50,7 @@ class MailerFix extends Email
|
||||
$v = $this->$func();
|
||||
|
||||
if ($v) {
|
||||
$this->args[$i] = $v;
|
||||
$this->args[$i] = is_array($v) ? array_keys($v) : $v;
|
||||
}
|
||||
|
||||
$i++;
|
||||
@ -64,6 +64,7 @@ class MailerFix extends Email
|
||||
|
||||
$this->loadDetails();
|
||||
$body = $this->getBody();
|
||||
|
||||
$to = self::convertVars($this->args[1]);
|
||||
|
||||
$email = (new MimeEmail())
|
||||
@ -94,8 +95,7 @@ class MailerFix extends Email
|
||||
$email->replyTo($reply);
|
||||
}
|
||||
|
||||
|
||||
$mailer->send($email);
|
||||
return $mailer->send($email);
|
||||
//parent::send();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user