When the WordPress Mails get in SAPM folder
Other way to do that is using the small plugin WP SMTP MAIL, that gets the same which gets the same as the previous code, setting the email account to use besides. It also allows a test to see if the plugin works correctly and , if not, it launch a code where we can study the problem.