wp_mail only sends emails to gmail

Question

wp_mail only sends emails to gmail and i receive emails only on gmail inbox but in dedicated servers couldnt send recieve anything even as spam
followed data works well only to gmail

        add_filter( 'wp_mail_content_type', array( $this, 'set_html_mail_content_type' ) );
       
        $to = myacc@gmail.com;

        $subject = 'test';
        
        wp_mail( $to, $subject, 'body');

        remove_filter( 'wp_mail_content_type', array( $this, 'set_html_mail_content_type' ) );

0
user191790 1 year 2020-07-17T06:11:24-05:00 0 Answers 59 views 0

Leave an answer

Browse
Browse