update
This commit is contained in:
216
wp-content/plugins/fluent-smtp/app/views/admin/digest_email.php
Normal file
216
wp-content/plugins/fluent-smtp/app/views/admin/digest_email.php
Normal file
@@ -0,0 +1,216 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title><?php esc_html_e('FluentSMTP Email Health Report', 'fluent-smtp') ?></title>
|
||||
<style type="text/css">@media only screen and (max-width: 599px) {
|
||||
table.body .container {
|
||||
width: 95% !important;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 15px 15px 12px 15px !important;
|
||||
}
|
||||
|
||||
.header img {
|
||||
width: 200px !important;
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.content, .aside {
|
||||
padding: 30px 40px 20px 40px !important;
|
||||
}
|
||||
}</style>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: 'Helvetica', 'Arial', sans-serif;
|
||||
font-size: 14px;
|
||||
background: #eeeeee;
|
||||
}
|
||||
|
||||
/* GENERAL STYLE RESETS */
|
||||
body, #bodyTable {
|
||||
height: 100% !important;
|
||||
width: 100% !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img, a img {
|
||||
border: 0;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
table, td {
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
img {
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
body, table, td, p, a, li, blockquote {
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body
|
||||
style="height: 100% !important; width: 100% !important; min-width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-font-smoothing: antialiased !important; -moz-osx-font-smoothing: grayscale !important; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; margin: 0; Margin: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; background-color: #f1f1f1; text-align: center;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="body"
|
||||
style="border-collapse: collapse; border-spacing: 0; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; height: 100% !important; width: 100% !important; min-width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-font-smoothing: antialiased !important; -moz-osx-font-smoothing: grayscale !important; background-color: #f1f1f1; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; margin: 0; Margin: 0; text-align: left; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%;">
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td align="center" valign="top" class="body-inner fluent-smtp"
|
||||
style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; margin: 0; Margin: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; text-align: center;">
|
||||
<!-- Container -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="container"
|
||||
style="border-collapse: collapse; border-spacing: 0; padding: 0; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 600px; margin: 0 auto 30px auto; Margin: 0 auto 30px auto; text-align: inherit;">
|
||||
<!-- Header -->
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td valign="middle" class="header"
|
||||
style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: white; border: 1px solid #7D3492; background: #7D3492; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; margin: 0; Margin: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; text-align: left; padding: 10px 20px 10px 20px;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<h3 style="margin: 5px 0; color: white;"><?php esc_html_e('Email Sending Health', 'fluent-smtp') ?></h3>
|
||||
<p style="margin: 0;color: white;font-size: 12px;"><?php echo esc_html($date_range); ?></p>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
<img src="<?php echo esc_url(fluentMailMix('images/fluentsmtp-white.png')); ?>"
|
||||
width="164px" alt="Fluent SMTP Logo"
|
||||
style="outline: none; text-decoration: none; max-width: 100%; clear: both; -ms-interpolation-mode: bicubic; display: inline-block !important; width: 164px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Content -->
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td align="left" valign="top" class="content"
|
||||
style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; margin: 0; Margin: 0; text-align: left; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; background-color: #ffffff; padding: 20px 20px 30px 20px; border-right: 1px solid #ddd; border-left: 1px solid #ddd;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<h3 style="font-size: 18px; font-weight: normal; margin: 0;"><?php echo wp_kses_post($sent['title']); ?></h3>
|
||||
<?php if ($sent['subject_items']): ?>
|
||||
<p style="margin: 4px 0 0 0;font-size: 12px;"><?php echo wp_kses_post($sent['subtitle']); ?></p>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 0">
|
||||
<?php if ($sent['subject_items']): ?>
|
||||
<table width="100%"
|
||||
style="border: 1px solid #ccd0d4; border-collapse: collapse;">
|
||||
<tr style="background-color: #f9f9f9;">
|
||||
<th style="padding: 8px 10px;"
|
||||
align="left"><?php esc_html_e('Subject', 'fluent-smtp'); ?></th>
|
||||
<th style="width:85px; padding: 8px 10px;"><?php esc_html_e('Emails Sent', 'fluent-smtp'); ?></th>
|
||||
</tr>
|
||||
<?php foreach ($sent['subject_items'] as $index => $item): ?>
|
||||
<tr <?php if($index % 2 == 1) { echo 'style="background-color: #f9f9f9;"'; }?>>
|
||||
<td style="padding: 8px 10px;"><?php echo wp_kses_post($item['subject']); ?></td>
|
||||
<td style="padding: 8px 10px;"
|
||||
align="center"><?php echo esc_html(number_format_i18n($item['emails_sent'])); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<table width="100%" cellpadding="20">
|
||||
<tr>
|
||||
<td bgcolor="#eeeeee"
|
||||
style="background-color: #eeeeee;border-radius: 5px;"
|
||||
align="center">
|
||||
<h3 style="font-size: 24px; line-height: 30px; font-weight: normal;"><?php esc_html_e('Looks like no email has been sent to the time period', 'fluent-smtp'); ?></h3>
|
||||
<p>
|
||||
<?php esc_html_e('If this is unusual you should probably check if your site is broken.', 'fluent-smtp');
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Fails -->
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td align="left" valign="top" class="content"
|
||||
style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; margin: 0; Margin: 0; text-align: left; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; background-color: #ffffff; padding: 20px 20px 30px 20px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 1px solid #ddd;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<h3 style="font-size: 18px; font-weight: normal; margin: 0;"><?php echo wp_kses_post($fail['title']); ?></h3>
|
||||
<?php if ($fail['subject_items']): ?>
|
||||
<p style="margin: 4px 0 0 0;"><?php echo wp_kses_post($fail['subtitle']); ?></p>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 0">
|
||||
<?php if ($fail['subject_items']): ?>
|
||||
<table width="100%" style="border: 1px solid #ccd0d4; border-collapse: collapse;">
|
||||
<tr style="background-color: #f9f9f9;">
|
||||
<th style="padding: 8px 10px;" align="left"><?php esc_html_e('Subject', 'fluent-smtp'); ?></th>
|
||||
<th style="width:85px; padding: 8px 10px;"><?php esc_html_e('Failed Count', 'fluent-smtp'); ?></th>
|
||||
</tr>
|
||||
<?php foreach ($fail['subject_items'] as $index => $item): ?>
|
||||
<tr <?php if($index % 2 == 1) { echo 'style="background-color: #f9f9f9;"'; }?>>
|
||||
<td style="padding: 8px 10px;"><?php echo wp_kses_post($item['subject']); ?></td>
|
||||
<td style="padding: 8px 10px;"
|
||||
align="center"><?php echo esc_html(number_format_i18n($item['emails_sent'])); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<table width="100%" cellpadding="20">
|
||||
<tr>
|
||||
<td bgcolor="#eeeeee"
|
||||
style="background-color: #eeeeee;border-radius: 5px;" align="center">
|
||||
<h3 style="font-size: 24px; line-height: 30px; font-weight: normal;"><?php esc_html_e('Awesome! no failures! 🎉', 'fluent-smtp'); ?></h3>
|
||||
<p>
|
||||
<?php esc_html_e('Your email sending health is perfect', 'fluent-smtp');
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td valign="middle" class="header" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: white; border: 1px solid #7D3492; background: #7D3492; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; margin: 0; Margin: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; text-align: left; padding: 10px 20px 10px 20px;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<p style="font-size: 10px; line-height: 12px; color: white;"><?php esc_html_e('You received this email because the Email Sending Health Report is enabled in your FluentSMTP settings. Simply turn it off to stop these emails at ', 'fluent-smtp') ?><?php echo esc_html($domain_name); ?>.</p>
|
||||
</td>
|
||||
<td style="text-align: right;width: 100px; padding-left: 15px;">
|
||||
<img src="<?php echo esc_url(fluentMailMix('images/fluentsmtp-white.png')); ?>"
|
||||
width="164px" alt="Fluent SMTP Logo"
|
||||
style="outline: none; text-decoration: none; max-width: 100%; clear: both; -ms-interpolation-mode: bicubic; display: inline-block !important; width: 164px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,59 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title><?php esc_html_e('FluentSMTP Test Email', 'fluent-smtp') ?></title>
|
||||
<style type="text/css">@media only screen and (max-width: 599px) {table.body .container {width: 95% !important;}.header {padding: 15px 15px 12px 15px !important;}.header img {width: 200px !important;height: auto !important;}.content, .aside {padding: 30px 40px 20px 40px !important;}}</style>
|
||||
</head>
|
||||
<body style="height: 100% !important; width: 100% !important; min-width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-font-smoothing: antialiased !important; -moz-osx-font-smoothing: grayscale !important; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; margin: 0; Margin: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; background-color: #f1f1f1; text-align: center;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="body" style="border-collapse: collapse; border-spacing: 0; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; height: 100% !important; width: 100% !important; min-width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-font-smoothing: antialiased !important; -moz-osx-font-smoothing: grayscale !important; background-color: #f1f1f1; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; margin: 0; Margin: 0; text-align: left; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%;">
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td align="center" valign="top" class="body-inner fluent-smtp" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; margin: 0; Margin: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; text-align: center;">
|
||||
<!-- Container -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="container" style="border-collapse: collapse; border-spacing: 0; padding: 0; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 600px; margin: 0 auto 30px auto; Margin: 0 auto 30px auto; text-align: inherit;">
|
||||
<!-- Header -->
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td align="center" valign="middle" class="header" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; margin: 0; Margin: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; text-align: center; padding: 30px 30px 22px 30px;">
|
||||
<img src="<?php echo esc_url( fluentMailMix('images/fluentsmtp.png')); ?>" width="164px" alt="Fluent SMTP Logo" style="outline: none; text-decoration: none; max-width: 100%; clear: both; -ms-interpolation-mode: bicubic; display: inline-block !important; width: 164px;">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Content -->
|
||||
<tr style="padding: 0; vertical-align: top; text-align: left;">
|
||||
<td align="left" valign="top" class="content" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; margin: 0; Margin: 0; text-align: left; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; background-color: #ffffff; padding: 60px 75px 45px 75px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 1px solid #ddd; border-top: 4px solid #c716c1;">
|
||||
<div class="success" style="text-align: center;">
|
||||
<p class="text-extra-large text-center congrats" style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 20px; text-align: center; margin: 0 0 20px 0; Margin: 0 0 20px 0;">
|
||||
<?php esc_html_e('Congrats, test email was sent successfully!', 'fluent-smtp') ?>
|
||||
</p>
|
||||
<p class="text-large" style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; text-align: left; mso-line-height-rule: exactly; line-height: 140%; margin: 0 0 15px 0; Margin: 0 0 15px 0; font-size: 16px;">
|
||||
<?php esc_html_e('Thank you for using Fluent SMTP Plugin. The ultimate SMTP plugin you need for making sure your emails are delivered.', 'fluent-smtp') ?><br /><br /><?php esc_html_e('FluentSMTP is a free opensource plugin and it will be always free ', 'fluent-smtp') ?>(<a href="https://fluentsmtp.com/why-we-built-fluentsmtp-plugin/"><?php esc_html_e('Learn why it\'s free', 'fluent-smtp') ?></a>).
|
||||
</p>
|
||||
|
||||
<p class="signature" style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; text-align: left; margin: 20px 0 0 0; Margin: 20px 0 0 0;">
|
||||
<img src="<?php echo esc_url( fluentMailMix('images/mail_signature.png')); ?>" width="250" alt="Fluent SMTP Logo" style="outline: none; text-decoration: none; max-width: 100%; clear: both; -ms-interpolation-mode: bicubic; display: inline-block !important; width: 150px;">
|
||||
</p>
|
||||
<p style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; text-align: left; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; margin: 0 0 15px 0; Margin: 0 0 15px 0;">
|
||||
Shahjahan Jewel<br>
|
||||
CEO, WPManageNinja LLC
|
||||
</p>
|
||||
|
||||
<p style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; text-align: left; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; margin: 20px 0 15px 0; Margin: 20px 0 15px 0;">
|
||||
<?php esc_html_e('This email was sent from ', 'fluent-smtp') ?><b><?php echo esc_html(get_bloginfo('name')); ?> at <?php echo esc_html(current_time('mysql')); ?></b>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: normal; padding: 0; text-align: center; font-size: 14px; mso-line-height-rule: exactly; line-height: 140%; margin: 0 0 15px 0; margin: 0 0 15px 0;">
|
||||
<?php esc_html_e('PS: if you have a minute please ', 'fluent-smtp') ?><a href="https://wordpress.org/support/plugin/fluent-smtp/reviews/?filter=5"><?php esc_html_e('write a review for FluentSMTP', 'fluent-smtp') ?></a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
Hi There,
|
||||
Are you seeing this email? You are? Well awesome - that means you're all set to start sending emails from your site.
|
||||
Thank you for using FluentSMTP 🎉
|
||||
|
||||
This Email sent at (server time): <?php echo esc_html(date('Y-m-d H:i:s')); ?>
|
||||
@@ -0,0 +1,28 @@
|
||||
<div class="fss_connection_info">
|
||||
<table class="wp-list-table widefat striped">
|
||||
<tr>
|
||||
<th><?php esc_html_e('Connection Type', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html($connection['provider']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sender Email', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html($connection['sender_email']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sender Name', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html($connection['sender_name']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Force Sender Name', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html(ucfirst($connection['force_from_name'])); ?></td>
|
||||
</tr>
|
||||
<?php if(isset($connection['extra_rows'])) : ?>
|
||||
<?php foreach ($connection['extra_rows'] as $row): ?>
|
||||
<tr>
|
||||
<th><?php echo esc_html($row['title']); ?></th>
|
||||
<td><?php echo wp_kses_post($row['content']); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
51
wp-content/plugins/fluent-smtp/app/views/admin/html_code.php
Normal file
51
wp-content/plugins/fluent-smtp/app/views/admin/html_code.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title>FluentSMTP</title>
|
||||
<style>
|
||||
.fsmtp_wrap {
|
||||
margin: 200px auto 0;
|
||||
width: 500px;
|
||||
text-align: center;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
.fsmtp_title {
|
||||
padding: 10px 20px;
|
||||
border-bottom: 1px solid gray;
|
||||
background: hsl(240deg 8% 93%);
|
||||
}
|
||||
|
||||
.fsmtp_body {
|
||||
padding: 20px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
background: hsl(240deg 6% 87%);
|
||||
}
|
||||
textarea {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.fsmtp_wrap * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="fsmtp_wrap">
|
||||
<div class="fsmtp_title"><?php echo esc_html($title); ?></div>
|
||||
<div class="fsmtp_body">
|
||||
<?php echo $body; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
1
wp-content/plugins/fluent-smtp/app/views/admin/index.php
Normal file
1
wp-content/plugins/fluent-smtp/app/views/admin/index.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php // silence is golden
|
||||
1
wp-content/plugins/fluent-smtp/app/views/admin/menu.php
Normal file
1
wp-content/plugins/fluent-smtp/app/views/admin/menu.php
Normal file
@@ -0,0 +1 @@
|
||||
<div id='fluent_mail_app'></div>
|
||||
@@ -0,0 +1,60 @@
|
||||
<div class="fss_connection_info">
|
||||
|
||||
<?php if($error): ?>
|
||||
<p style="color: red;" class="connection_info_error"><?php esc_html_e('Connection Error: ', 'fluent-smtp') ?><?php echo wp_kses_post($error); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="wp-list-table widefat striped">
|
||||
<tr>
|
||||
<th><?php esc_html_e('Connection Type', 'fluent-smtp') ?></th>
|
||||
<td>Amazon SES</td>
|
||||
</tr>
|
||||
<?php if(isset($stats['Max24HourSend'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Max Send in 24 hours', 'fluent-smtp') ?></th>
|
||||
<td><?php echo (int) $stats['Max24HourSend']; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if(isset($stats['SentLast24Hours'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sent in last 24 hours', 'fluent-smtp') ?></th>
|
||||
<td><?php echo (int) $stats['SentLast24Hours']; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if(isset($stats['MaxSendRate'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Max Sending Rate', 'fluent-smtp') ?></th>
|
||||
<td><?php echo (int) $stats['MaxSendRate']; ?>/sec</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sender Email', 'fluent-smtp') ?></th>
|
||||
<td><?php echo $connection['sender_email']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sender Name', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html($connection['sender_name']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Force Sender Name', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html(ucfirst($connection['force_from_name'])); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Valid Sending Emails', 'fluent-smtp') ?></th>
|
||||
<td>
|
||||
<ul>
|
||||
<?php foreach ($valid_senders as $sender): ?>
|
||||
<li><?php echo esc_html($sender); ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php if(!$error && empty($stats['Max24HourSend'])): ?>
|
||||
<p style="color: red;" class="connection_info_error">
|
||||
<?php esc_html_e('Looks like you are in sandbox mode. Please apply to Amazon AWS to approve your account. ', 'fluent-smtp') ?><a href="https://fluentcrm.com/set-up-amazon-ses-with-fluentcrm/#4-moving-out-of-sandbox-mode" target="_blank" rel="nofollow"><?php esc_html_e('Read More here.', 'fluent-smtp') ?></a>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<p><a href="https://aws.amazon.com/ses/extendedaccessrequest/" target="_blank" rel="nofollow"><?php esc_html_e('Increase Sending Limits', 'fluent-smtp') ?></a></p>
|
||||
</div>
|
||||
@@ -0,0 +1,62 @@
|
||||
<div class="fss_connection_info">
|
||||
<?php if($error): ?>
|
||||
<p style="color: red;" class="connection_info_error"><?php esc_html_e('Connection Error: ', 'fluent-smtp') ?><?php echo wp_kses_post($error); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="wp-list-table widefat striped">
|
||||
<tr>
|
||||
<th><?php esc_html_e('Connection Type', 'fluent-smtp') ?></th>
|
||||
<td>toSend</td>
|
||||
</tr>
|
||||
<?php if(isset($stats['monthly_email_limit'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Monthly Email Limit', 'fluent-smtp') ?></th>
|
||||
<td><?php echo (int) $stats['monthly_email_limit']; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if(isset($stats['emails_sent_last_24hrs'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sent in last 24 hours', 'fluent-smtp') ?></th>
|
||||
<td><?php echo (int) $stats['emails_sent_last_24hrs']; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if(isset($stats['emails_usage_this_month'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Usage this month', 'fluent-smtp') ?></th>
|
||||
<td><?php echo (int) $stats['emails_usage_this_month']; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($stats['sending_left_this_month'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sending left this month', 'fluent-smtp') ?></th>
|
||||
<td><?php echo (int) $stats['sending_left_this_month']; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sender Email', 'fluent-smtp') ?></th>
|
||||
<td><?php echo wp_kses_post($connection['sender_email']); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Sender Name', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html($connection['sender_name']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Force Sender Name', 'fluent-smtp') ?></th>
|
||||
<td><?php echo esc_html(ucfirst($connection['force_from_name'])); ?></td>
|
||||
</tr>
|
||||
<?php if(!empty($connection['valid_senders'])): ?>
|
||||
<tr>
|
||||
<th><?php esc_html_e('Valid Sending Emails', 'fluent-smtp') ?></th>
|
||||
<td>
|
||||
<ul>
|
||||
<?php foreach($connection['valid_senders'] as $validSender): ?>
|
||||
<li><?php echo esc_html($validSender); ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user