Change Wordpress default FROM email address

/ Published in: PHP

Add to the bottom of the your theme's function.php file. Change to your site's name

Copy this code and paste it in your HTML
  1. add_filter('wp_mail_from', 'new_mail_from');
  2. add_filter('wp_mail_from_name', 'new_mail_from_name');
  4. function new_mail_from($old) {
  5. }
  6. function new_mail_from_name($old) {
  7. return 'Your Blog Name';
  8. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.