calc tier stats
This commit is contained in:
parent
1225c8b7c3
commit
da75a2e409
1 changed files with 31 additions and 31 deletions
|
@ -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}");
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue