Account activation email

Hi,

When creating an new account for an user on subsite.tld, the user receives an mail from multisite.tld. Is there a way to send account creation mails from the subsite.tld email?

Thanks!

  • James Morris

    Hello Maarten,

    Thank you for the question.

    In order to set a different "From" email address on your subsites, you'll need to add a piece of code to your subsite's child theme. Simply copy and paste the following code into the subsite's child theme and change it to suite.

    add_filter('wp_mail_from','yoursite_wp_mail_from');
    function yoursite_wp_mail_from($content_type) {
      return 'mail@example.com';
    }
    add_filter('wp_mail_from_name','yoursite_wp_mail_from_name');
    function yoursite_wp_mail_from_name($name) {
      return 'Example Name';
    }

    Let me know if you have any further questions. I'll be happy to help! :slight_smile:

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.