get_label(); } /** * Tab content. * * @since 4.9.0 */ public function display() { ?>
display_hero(); ?> display_features(); ?> display_comparison(); ?>
display_upgrade_button( 'Hero' ); ?> display_discount_badge(); ?>
get_feature_cards() as $card ) : ?>
display_upgrade_button( 'Features Grid' ); ?> display_discount_badge(); ?>
display_comparison_header(); ?> get_comparison_rows() as $row ) : ?> display_comparison_row( $row ); ?>
display_upgrade_button( 'Bottom' ); ?> display_discount_badge(); ?>
display_comparison_cell( $row['lite'] ); ?>
display_comparison_cell( $row['pro'] ); ?>
display_status_icon( $cell['status'] ); ?>
[ 'file' => 'status-full', 'label' => esc_attr__( 'Available', 'wp-mail-smtp' ) ], 'partial' => [ 'file' => 'status-partial', 'label' => esc_attr__( 'Partially available', 'wp-mail-smtp' ) ], 'none' => [ 'file' => 'status-none', 'label' => esc_attr__( 'Not available', 'wp-mail-smtp' ) ], ]; if ( ! isset( $icons[ $status ] ) ) { return; } $icon = $icons[ $status ]; ?>
get_upgrade_link( [ 'medium' => 'get-pro-tab', 'content' => $content ] ) ); ?>
'card-email-logs', 'title' => esc_html__( 'Email Logs', 'wp-mail-smtp' ), 'description' => esc_html__( 'Save details about every email sent from your WordPress site.', 'wp-mail-smtp' ), ], [ 'image' => 'card-email-failure-alerts', 'title' => esc_html__( 'Email Failure Alerts', 'wp-mail-smtp' ), 'description' => esc_html__( 'Receive immediate alerts for email failures to quickly address issues.', 'wp-mail-smtp' ), ], [ 'image' => 'card-backup-connections', 'title' => esc_html__( 'Backup Connections', 'wp-mail-smtp' ), 'description' => esc_html__( 'Set up a secondary email provider in case your primary provider fails.', 'wp-mail-smtp' ), ], [ 'image' => 'card-one-click-mailer-setups', 'title' => esc_html__( 'One-Click Mailer Setups', 'wp-mail-smtp' ), 'description' => esc_html__( 'An easy and secure way to configure your Gmail and Outlook mailers.', 'wp-mail-smtp' ), ], [ 'image' => 'card-smart-routing', 'title' => esc_html__( 'Smart Routing', 'wp-mail-smtp' ), 'description' => esc_html__( 'Use conditional logic to send emails through different providers.', 'wp-mail-smtp' ), ], [ 'image' => 'card-advanced-mailers', 'title' => esc_html__( 'Advanced mailers', 'wp-mail-smtp' ), 'description' => esc_html__( 'Connect with top providers like Amazon SES, Microsoft 365 / Outlook, and Zoho Mail.', 'wp-mail-smtp' ), ], ]; } /** * Twelve-row Lite vs Pro feature comparison. * * @since 4.9.0 * * @return array */ private function get_comparison_rows() { $not_available = [ 'status' => 'none', 'lead' => esc_html__( 'Not available', 'wp-mail-smtp' ), 'rest' => '', ]; return [ [ 'feature' => esc_html__( 'Improved Email Deliverability', 'wp-mail-smtp' ), 'lite' => [ 'status' => 'partial', 'lead' => esc_html__( 'Connect your WordPress site to any of the following SMTP providers:', 'wp-mail-smtp' ), 'rest' => esc_html__( 'SendLayer, SMTP.com, Brevo, Google Workspace / Gmail, Mailgun, Postmark, SendGrid, SMTP2GO, Sparkpost, and any other SMTP provider using your SMTP credentials.', 'wp-mail-smtp' ), ], 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Connect your WordPress site to any of our Lite SMTP providers, as well as:', 'wp-mail-smtp' ), 'rest' => esc_html__( 'Amazon SES, Microsoft 365 / Outlook, and Zoho Mail.', 'wp-mail-smtp' ), ], ], [ 'feature' => esc_html__( 'Weekly Email Summaries', 'wp-mail-smtp' ), 'lite' => [ 'status' => 'partial', 'lead' => esc_html__( 'Receive a basic report of your total emails sent including a summary of the previous week\'s sent emails.', 'wp-mail-smtp' ), 'rest' => '', ], 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Receive a detailed report of your total and previous week\'s metrics for emails sent, failed, and delivered, plus statistics for your top 5 popular emails.', 'wp-mail-smtp' ), 'rest' => '', ], ], [ 'feature' => esc_html__( 'Email Error Tracking', 'wp-mail-smtp' ), 'lite' => [ 'status' => 'full', 'lead' => esc_html__( 'View email sending errors in your WordPress dashboard.', 'wp-mail-smtp' ), 'rest' => '', ], 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'View email sending errors in your WordPress dashboard.', 'wp-mail-smtp' ), 'rest' => '', ], ], [ 'feature' => esc_html__( 'Google Workspace', 'wp-mail-smtp' ), 'lite' => [ 'status' => 'partial', 'lead' => esc_html__( 'Manually connect to your account with Google Workspace/ Gmail mailer', 'wp-mail-smtp' ), 'rest' => '', ], 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Access your Google Workspace immediately with Gmail One Click Setup', 'wp-mail-smtp' ), 'rest' => '', ], ], [ 'feature' => esc_html__( 'Outlook', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Access Outlook immediately with Outlook One Click Setup', 'wp-mail-smtp' ), 'rest' => '', ], ], [ 'feature' => esc_html__( 'Email Logging', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'View detailed email logs in your WordPress dashboard.', 'wp-mail-smtp' ), 'rest' => esc_html__( 'Includes delivery status, email content, attachments, source, and technical details, plus the option to resend the email.', 'wp-mail-smtp' ), ], ], [ 'feature' => esc_html__( 'Instant Email Alerts', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Receive an alert via your preferred channel whenever an email fails to send.', 'wp-mail-smtp' ), 'rest' => esc_html__( 'Email, Slack, SMS via Twilio, Microsoft Teams, Discord, or custom webhooks.', 'wp-mail-smtp' ), ], ], [ 'feature' => esc_html__( 'Backup Connections', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Connect to multiple SMTP providers.', 'wp-mail-smtp' ), 'rest' => esc_html__( 'Choose one primary connection, then select another connection as a backup. If an email fails to send via your primary connection, it will automatically be resent using your backup connection.', 'wp-mail-smtp' ), ], ], [ 'feature' => esc_html__( 'Manage Email Notifications', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Choose which default WordPress email notifications your site sends.', 'wp-mail-smtp' ), 'rest' => '', ], ], [ 'feature' => esc_html__( 'Open & Click Tracking', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Monitor email open and click-through rates.', 'wp-mail-smtp' ), 'rest' => '', ], ], [ 'feature' => esc_html__( 'Email Reports', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'View advanced email reports in your WordPress dashboard.', 'wp-mail-smtp' ), 'rest' => esc_html__( 'Includes total number of emails sent, emails delivered, failed emails, opened emails, links clicked.', 'wp-mail-smtp' ), ], ], [ 'feature' => esc_html__( 'Smart Routing', 'wp-mail-smtp' ), 'lite' => $not_available, 'pro' => [ 'status' => 'full', 'lead' => esc_html__( 'Send emails through more than one SMTP provider.', 'wp-mail-smtp' ), 'rest' => esc_html__( 'Connect WP Mail SMTP to multiple providers, then route emails through your preferred provider based on custom conditional logic rules.', 'wp-mail-smtp' ), ], ], ]; } }