Jump to content
reed

WireMailGmail — using with LoginRegister?

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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. 

  • Like 6

Share this post


Link to post
Share on other sites
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 :)

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...