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' ) );