Support » Plugin: MC4WP: Mailchimp for WordPress » Change the "From" Email address in notifications

Viewing 5 replies - 1 through 5 (of 5 total)
  • mother.of.code

    (@imazed)

    The Mother of Code | Automattic Happiness Engineer

    Hey leighk,

    Yes, you sure can! Please add the following to your functions.php file:

    // Change default WordPress email address
    add_filter('wp_mail_from', 'new_mail_from');
    add_filter('wp_mail_from_name', 'new_mail_from_name');

    function new_mail_from($old) {
    return 'yourname@yourdomain.com';
    }
    function new_mail_from_name($old) {
    return 'Your Name';
    }

    Make sure you change yourname@yourdomain.com and Your Name to the values you need.

    Hope that helps!

    SWEET.

    Thanks for that. Appreciate it.

    Leigh

    mother.of.code

    (@imazed)

    The Mother of Code | Automattic Happiness Engineer

    You’re very welcome 🙂

    Plugin Author Danny van Kooten

    (@dvankooten)

    PS. Should you have a quick minute to spare, a plugin review here on WordPress.org would make us quite happy. 🙂

    added the code to my functions.php but didnt work
    // Change default WordPress email address
    add_filter(‘wp_mail_from’, ‘new_mail_from’);
    add_filter(‘wp_mail_from_name’, ‘new_mail_from_name’);

    function new_mail_from($old) {
    return ‘collins@yourdomain.com’;
    }
    function new_mail_from_name($old) {
    return ‘collins’;
    }

    am i missing something?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change the "From" Email address in notifications’ is closed to new replies.