HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux Droplet-NYC1-3 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.3-4ubuntu2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/belairhomeloan.com/wp-content/plugins/wp-ses/view/health-report/email-failures.php
<?php
$failed_emails         = $this->get_health_report()->get_failed_emails();
$num_failed            = (int) $this->get_health_report()->get_total_email_failures();
$retried_automatically = 0;
$retried_manually      = 0;

if ( $this->is_pro() ) {
	$retried_automatically = (int) $this->get_health_report()->get_total_retried_and_sent();
	$retried_manually      = (int) $this->get_health_report()->get_total_manually_retried_and_sent();
}
?>
<table width="100%">
	<tr>
		<td>
			<h3 style="margin: 10px 0 0 0; font-size: 18px; font-weight: normal;"><?php _e( 'Email Failures', 'wp-offload-ses' ); ?></h3>
			<?php if ( $num_failed ) : ?>
			<p style="margin: 4px 0 0 0;">
				<?php
				$total_failed = $num_failed + $retried_automatically + $retried_manually;
				printf(
					__( 'Showing %1$s of %2$s emails that failed to send in the past %3$s', 'wp-offload-ses' ),
					number_format_i18n( count( $failed_emails ) ),
					number_format_i18n( $total_failed ),
					$this->get_health_report()->get_reporting_period()
				);
				?>	
			</p>
			<?php endif; ?>

			<?php
			if ( $this->is_pro() ) {
				$this->render_view(
					'pro/health-report/failure-stats',
					array(
						'num_failed'            => $num_failed,
						'retried_automatically' => $retried_automatically,
						'retried_manually'      => $retried_manually,
					)
				);
			}
			?>
		</td>
		<td style="vertical-align: bottom; text-align: right;" align="right">
			<?php echo $this->get_health_report()->get_view_full_report_link( 'failed' ); ?>
		</td>
	</tr>
	<tr>
		<?php
		if ( $num_failed ) {
			$this->render_view( 'health-report/failures-table', array( 'failed_emails' => $failed_emails ) );
		} else {
			$this->render_view( 'health-report/no-failures' );
		}
		?>
	</tr>
</table>

<?php
if ( ( $num_failed || $retried_automatically ) && $this->is_pro() ) {
	$this->render_view(
		'pro/health-report/phewf',
		array(
			'num_failed'            => $num_failed,
			'retried_automatically' => $retried_automatically,
		)
	);
}
?>