Enter your keyword

Blog

How to Change Mail from and display name with a filter action

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');
function new_mail_from($old) {
    return 'admin@example.com';
}
function new_mail_from_name($old) {
    return 'DS Web Solutions';
}
 

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.