March 27, 2019

wp_mail check with port 25

function mail_check_25(){
    if(isset($_GET['mail_check_25'])){
        echo 'Ready?<br />';
        echo wp_mail('youremail@gmail.com', 'Testing from '.get_bloginfo('name'), home_url())?'Inbox':'Silence';
        exit;
    }
}
add_action('init', 'mail_check_25');
Last updated: March 27, 2019