Status::summary(), 'ledger_counts' => ( new LedgerRepository() )->counts_between( $from, $now ), 'incidents' => ( new IncidentRepository() )->opened_since( $from ), 'site_name' => wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), ); $subject = sprintf( /* translators: %s: site name */ __( '[%s] Weekly site care digest', 'aftercare' ), $aftercare_digest['site_name'] ); ob_start(); include AFTERCARE_DIR . 'templates/email-digest.php'; $body = (string) ob_get_clean(); wp_mail( $to, $subject, $body, array( 'Content-Type: text/html; charset=UTF-8' ) ); } }