• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

WP Mail SMTP Pro - Easy Email Deliverability for WordPress

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

No permission to download
I'm trying on my own site right now, I'll let you know.
 
  • Like
Reactions: bleem
It gave me an error too, I apologize to everyone for this update.
 
  • Like
Reactions: Babak
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 );
    }
 
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: power2010
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
 
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)
 
@Babak , 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: Babak
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
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock