reed Posted August 21, 2019 Share Posted August 21, 2019 Hey y'all! I'm building a front-end login system with the LoginRegister module, and my registration and password reset emails were taking up to 30min to send. So, I set up the fantastic (and recent) WireMailGmail module. A bit tricky on Google's end, but its working beautifully — my password reset emails are sending in milliseconds. Buuuuut, my registration emails, from the LoginRegister module, are still being sent with the old WireMail system, instead of the new WireMailGmail setup. I'm not running any other WireMail plugins, and I already added the line: $config->wireMail('module', 'WireMailGmail'); to my config.php, as suggested in the readme. Any thoughts? I feel like I must be missing something obvious in the LoginRegister module code? Thanks so much for any help, especially on such a new plugin! Link to comment Share on other sites More sharing options...
reed Posted August 21, 2019 Author Share Posted August 21, 2019 Fixed! Not completely sure why, but switching: $mail = new WireMail(); to this: $mail = $this->wire('mail')->new(); in the LoginRegister module did the trick — line 684. Now Gmail's sending my registration emails too ? Gotta say, I am hugely grateful for Processwire. Ryan, and all you fantastic moderators and commenters—this is such a great place to learn, and goddamn if the sky doesn't seem to be the limit. 6 Link to comment Share on other sites More sharing options...
elabx Posted August 21, 2019 Share Posted August 21, 2019 39 minutes ago, reed said: goddamn if the sky doesn't seem to be the limit. That feeling is simply awesome! Welcome to the community :) 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now