Jump to content

[SOLVED] How to set fromName to all PW outgoing emails?


PWaddict
 Share

Recommended Posts

Ok it's actually very easy to do it with a hook in ready.php:

// Add fromName to all outgoing emails
$wire->addHookBefore('WireMail::send', function(HookEvent $event) {

  $WireMail = $event->object;
  $WireMail->fromName('My Name');
  $event->return = $WireMail;

});

I tested it with Forgot Password, Padloper and Login Register Pro and it works great ?

Link to comment
Share on other sites

  • PWaddict changed the title to [SOLVED] How to set fromName to all PW outgoing emails?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...