1
0
Fork 0
mirror of synced 2024-09-02 02:41:38 +12:00

calc tier stats

This commit is contained in:
shimon 2023-05-30 18:13:30 +03:00
parent 1225c8b7c3
commit da75a2e409

View file

@ -257,36 +257,36 @@ class CalcTierStats extends Action
$pools $pools
->get('console') ->get('console')
->reclaim(); ->reclaim();
//
// /** @var PHPMailer $mail */ /** @var PHPMailer $mail */
// $mail = $register->get('smtp'); $mail = $register->get('smtp');
//
// $mail->clearAddresses(); $mail->clearAddresses();
// $mail->clearAllRecipients(); $mail->clearAllRecipients();
// $mail->clearReplyTos(); $mail->clearReplyTos();
// $mail->clearAttachments(); $mail->clearAttachments();
// $mail->clearBCCs(); $mail->clearBCCs();
// $mail->clearCCs(); $mail->clearCCs();
//
// try { try {
// /** Addresses */ /** Addresses */
// $mail->setFrom(App::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM), 'Appwrite Cloud Hamster'); $mail->setFrom(App::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM), 'Appwrite Cloud Hamster');
// $recipients = explode(',', App::getEnv('_APP_USERS_STATS_RECIPIENTS', '')); $recipients = explode(',', App::getEnv('_APP_USERS_STATS_RECIPIENTS', ''));
//
// foreach ($recipients as $recipient) { foreach ($recipients as $recipient) {
// $mail->addAddress($recipient); $mail->addAddress($recipient);
// } }
//
// /** Attachments */ /** Attachments */
// $mail->addAttachment($this->path); $mail->addAttachment($this->path);
//
// /** Content */ /** Content */
// $mail->Subject = "Cloud Report for {$this->date}"; $mail->Subject = "Cloud Report for {$this->date}";
// $mail->Body = "Please find the daily cloud report atttached"; $mail->Body = "Please find the daily cloud report atttached";
// $mail->send(); $mail->send();
// Console::success('Email has been sent!'); Console::success('Email has been sent!');
// } catch (Exception $e) { } catch (Exception $e) {
// Console::error("Message could not be sent. Mailer Error: {$mail->ErrorInfo}"); Console::error("Message could not be sent. Mailer Error: {$mail->ErrorInfo}");
// } }
} }
} }