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
Comments