1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00
This commit is contained in:
shimon 2023-10-19 23:11:30 +03:00
parent 04676d9737
commit 7f42fbfe71

View file

@ -64,12 +64,13 @@ class Mails extends Action
}
$body = $body->render();
var_dump($smtp);
/** @var PHPMailer $mail */
$mail = empty($smtp)
? $register->get('smtp')
: $this->getMailer($smtp);
var_dump("mail=");
var_dump($mail);
$mail->clearAddresses();
$mail->clearAllRecipients();
$mail->clearReplyTos();
@ -95,7 +96,7 @@ class Mails extends Action
*/
protected function getMailer(array $smtp): PHPMailer
{
var_dump("smtp=");
var_dump($smtp);
$mail = new PHPMailer(true);