WP Mail SMTP Pro - Easy Email Deliverability for WordPress

WP Mail SMTP Pro - Easy Email Deliverability for WordPress v4.4.0

No permission to download

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,638
26,969
120
I'm trying on my own site right now, I'll let you know.
 
  • Like
Reactions: bleem

IntBoat

New member
Aug 14, 2022
13
20
3
I removed the update I added :cry:
modify function pro_license_test() to the following code, should fix the problem.

/src/Pro/SiteHealth.php:110-158
PHP:
    public function pro_license_test() {

        check_ajax_referer( 'health-check-site-status' );

        if ( ! current_user_can( 'view_site_health_checks' ) ) {
            wp_send_json_error();
        }

        $result = array(
            'label'       => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
            'status'      => 'good',
            'badge'       => array(
                'label' => wp_mail_smtp()->get_site_health()->get_label(),
                'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
            ),
            'description' => '',
            'actions'     => sprintf(
                '<p><a href="%s">%s</a></p>',
                esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
                esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
            ),
            'test'        => 'wp_mail_smtp_pro_license_check',
        );

        $license_status = wp_mail_smtp()->pro->get_license()->get_status();

        $result['description'] = $license_status['message'];

        if ( $license_status['valid'] === false ) {
            $result = array(
                'label'       => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
                'status'      => 'good',
                'badge'       => array(
                    'label' => wp_mail_smtp()->
                    get_site_health()->get_label(),
                    'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
                ),
                'description' => '',
                'actions'     => sprintf(
                    '<p><a href="%s">%s</a></p>>',
                    esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
                    esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
                ),
                'test'        => 'wp_mail_smtp_pro_license_check',
            );
        }

        wp_send_json_success( $result );
    }
 

ufkaytas

Member
Aug 14, 2020
34
30
18
The plugin (3.5.2) crashed instantly on installation. There is a serious problem with this version. I suggest that no one set up the plugin.

Edit: Php code worked. Problem seems to be fixed. Thank you.
/src/Pro/SiteHealth.php:110-158
 
Last edited:
  • Like
Reactions: power2009

power2009

Member
Oct 30, 2019
90
55
18
The plugin (3.5.2) crashed instantly on installation. There is a serious problem with this version. I suggest that no one set up the plugin.

Edit: Php code worked. Problem seems to be fixed. Thank you.
/src/Pro/SiteHealth.php:110-158
yeah its true in me too
 

power2009

Member
Oct 30, 2019
90
55
18
modify function pro_license_test() to the following code, should fix the problem.

/src/Pro/SiteHealth.php:110-158
PHP:
    public function pro_license_test() {

        check_ajax_referer( 'health-check-site-status' );

        if ( ! current_user_can( 'view_site_health_checks' ) ) {
            wp_send_json_error();
        }

        $result = array(
            'label'       => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
            'status'      => 'good',
            'badge'       => array(
                'label' => wp_mail_smtp()->get_site_health()->get_label(),
                'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
            ),
            'description' => '',
            'actions'     => sprintf(
                '<p><a href="%s">%s</a></p>',
                esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
                esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
            ),
            'test'        => 'wp_mail_smtp_pro_license_check',
        );

        $license_status = wp_mail_smtp()->pro->get_license()->get_status();

        $result['description'] = $license_status['message'];

        if ( $license_status['valid'] === false ) {
            $result = array(
                'label'       => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
                'status'      => 'good',
                'badge'       => array(
                    'label' => wp_mail_smtp()->
                    get_site_health()->get_label(),
                    'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
                ),
                'description' => '',
                'actions'     => sprintf(
                    '<p><a href="%s">%s</a></p>>',
                    esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
                    esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
                ),
                'test'        => 'wp_mail_smtp_pro_license_check',
            );
        }

        wp_send_json_success( $result );
    }
Work! Thanks)
 

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,638
26,969
120
@Tomz , here was a problem in the version I added , it was either really caused by the manufacturer or there was a problem where I get it . in both cases i will not update this plugin again . long story short ; do you have the latest version? :love:
 
  • Like
Reactions: tanierlyons

tanierlyons

Well-known member
Staff member
Administrative
Moderator
May 24, 2018
75,065
111,714
120
modify function pro_license_test() to the following code, should fix the problem.

/src/Pro/SiteHealth.php:110-158
PHP:
    public function pro_license_test() {

        check_ajax_referer( 'health-check-site-status' );

        if ( ! current_user_can( 'view_site_health_checks' ) ) {
            wp_send_json_error();
        }

        $result = array(
            'label'       => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
            'status'      => 'good',
            'badge'       => array(
                'label' => wp_mail_smtp()->get_site_health()->get_label(),
                'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
            ),
            'description' => '',
            'actions'     => sprintf(
                '<p><a href="%s">%s</a></p>',
                esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
                esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
            ),
            'test'        => 'wp_mail_smtp_pro_license_check',
        );

        $license_status = wp_mail_smtp()->pro->get_license()->get_status();

        $result['description'] = $license_status['message'];

        if ( $license_status['valid'] === false ) {
            $result = array(
                'label'       => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
                'status'      => 'good',
                'badge'       => array(
                    'label' => wp_mail_smtp()->
                    get_site_health()->get_label(),
                    'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
                ),
                'description' => '',
                'actions'     => sprintf(
                    '<p><a href="%s">%s</a></p>>',
                    esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
                    esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
                ),
                'test'        => 'wp_mail_smtp_pro_license_check',
            );
        }

        wp_send_json_success( $result );
    }
can u give me your edited version
attach here thanks so much
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu