Sunday, December 8, 2013

Wordpress change email from wordpress@domain.com to custom email address

function change_from_email_name()


$message = get_option(‘blogname’);

return $message;


add_filter(‘wp_mail_from_name’, ‘change_from_email_name’); // // changes email from default “wordpress@yourdomain.com”//

function change_from_email()


$message = get_option(‘admin_email’);

return $message;


add_filter(‘wp_mail_from’, ‘change_from_email’); /// Changed by mayank patel over ////


Wordpress change email from wordpress@domain.com to custom email address

No comments:

Post a Comment

Please mention your comments.......