WordPress

How To Change WordPress Default Email With Our Own (Fixed)

0
WordPress Default Email

Today we will be learning how to change WordPress Default Email with our own website email address. As you can see that you might have received the email from your website contact form or comment form as below which is a default email in WordPress.

Top 10 Email Marketing Plugins You Can Try Out Today For Best Results

WordPress@codexjunction.com

But we don’t want to show that particular email to our clients/customers so we can replace that email with our custom email address by using a small filter in our functions.php page in WordPress.

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) { 
return 'noreply@codexjunction.com';
}

function new_mail_from_name($old) { 
return 'Your Name';
}

Usually WordPress@yourwebsite.com will be replaced by emails like mentioned below:

info@codexjunction.com
noreply@codexjunction.com
newsletter@codexjunction.com
mails@codexjunction.com
also
yourown@codexjunction.com

6 Best Yoast SEO Alternatives For WordPress 2020

Previous article

13 Ways To Backup Your WordPress Website Easily

Next article

You may also like

Comments

Leave a reply

Your email address will not be published. Required fields are marked *

More in WordPress