Email From

In regular affiliate manager you could change the email from. However with affiliate pro all emails are coming from “WordPress” how do i change this?

Posted in

Comments

One response to “Email From”

  1. Hi Rick,

    Many thanks for using Affiliates Pro plugin on your site, we appreciate your choice.

    The email from is the core WordPress option used for all outgoing emails but you can change that using a third-party plugin like https://wordpress.org/plugins/wp-change-default-from-email/ or some WP filter hooks directly if you are familiar using custom snippets.
    The following snippet will change the from email address:

    add_filter( 'wp_mail_from', 'example_wp_mail_from' );
    function example_wp_mail_from( $original_email_address ) {
    //Make sure the email is from the same domain
    //as your website to avoid being marked as spam.
    return 'webmaster@mydomainname.com';
    }

    And the following snippet will change the from name:

    add_filter( 'wp_mail_from_name', 'example_wp_mail_from_name' );
    function example_wp_mail_from_name( $original_email_from ) {
    return 'My Awesome Website';
    }

    Kind regards,
    George

Share