/** * Check if report account credentials are configured properly * * @return boolean */ public static function canSendReport() { $smtp_host = EmailConfiguration::getSmtpHost(); $report_creds = EmailService::getReportCredentials(); if (!$report_creds || trim($smtp_host) === '') { return false; } return true; }