Pro Sites E-Mail Premium Support not working with Custom Mail Senders

Hey there,

i use this code in a mu-plugin for having the default mail senders changed:

// New E-Mail senders
add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
    return '';
function new_mail_from_name($old) {
    return 'I am sending this to you!';

My problem is, if i try to offer premium e-mail support via pro sites, of course the sender is still changed.

Is there any possibility to not affect pro sites or any other workaround for that?



  • Tyler Postle
    • CGO

    Hey David,

    Hope you're doing well today!

    I think I might be misunderstanding the issue here. The Pro Sites Premium support module will let your "premium" users send requests to a specific email of your choosing then you reply back through that email.

    It looks like you have only changed the default sender for your WordPress installation. Which shouldn't affect the email address you have listed in the Premium support settings of the Pro Sites module.

    I'm sure I'm misunderstanding the issue here, if you could provide any further info that would be helpful and I can have another look :slight_smile:

    Talk to you soon!


  • MapSteps
    • Site Builder, Child of Zeus

    Hey Tyler,

    thank you for your reply! :slight_smile:

    You were exactly right! Changing the senders (in my case) unfortunatley also affects the Pro Sites Premium Support E-Mails sent by users.

    So i cannot easily reply to them, because the sender is not his e-mail adress, its still my changed sender.

    Thanks, best wishes!

  • Tyler Postle
    • CGO

    Hey David,

    I tested this out and I see what you mean now, thanks for the additional clarification :slight_smile:

    I'm going to flag one of our SLS staff(coding experts) on this to see if we can figure out a workaround for you.

    In the meantime, let us know if you have any further questions.

    All the best,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.