Often happens, depending of the server configuration that we have hired or other facts, the emails that are generated by WordPress, whether through a contact form, by sign in forms or suscribe plugins, arrive at SPAM folder. The sender field can appear how “WordPress” too. To avoid this we can solve it in several ways

The first solution: Inserting a code in functions.php file of your template. It’s recommended, if you are modifying our template, use a Child Theme to avoid lose our custom code when our template updates. (Remember change the code with your web, name and domain)

add_filter('wp_mail_from', 'new_mail_from');

add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {

return 'info@mi-correo.xxx';

}

function new_mail_from_name($old) {

return 'MiWeb.Com o lo que tu quieras';

}

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.

You can solve that problem with this two possibilities.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.