Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: h_smith on June 24, 2022, 09:17:00 AM

Title: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: h_smith on June 24, 2022, 09:17:00 AM
I am running an older 2.0.x SMF with customization that I had someone develop over the years.

Is there a work around to continue working with Gmail and SMTP?

If not, can you recommend a free email service that supports SMTP?

Thanks.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: vbgamer45 on June 24, 2022, 09:25:19 AM
Possibly using an app password in gmail
https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Kindred on June 24, 2022, 10:51:32 AM
Quote from: h_smith on June 24, 2022, 09:17:00 AMI am running an older 2.0.x SMF

Regarding this....  Please upgrade to 2.0.19
There are security issues plus older versions do not support modern php versions.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: h_smith on June 25, 2022, 07:38:59 AM
Quote from: Kindred on June 24, 2022, 10:51:32 AM
Quote from: h_smith on June 24, 2022, 09:17:00 AMI am running an older 2.0.x SMF

Regarding this....  Please upgrade to 2.0.19
There are security issues plus older versions do not support modern php versions.

I would like to do this upgrade but I do not want to lose my customization. Are there any freelance SMF experts around doing upgrades for a fee? Thanks.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: h_smith on June 25, 2022, 07:40:21 AM
Quote from: vbgamer45 on June 24, 2022, 09:25:19 AMPossibly using an app password in gmail
https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882

Does anyone have evidence that this is a work-around for the OAuth 2.0 requirement?

Thanks.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Steve on June 25, 2022, 09:35:33 AM
Quote from: h_smith on June 25, 2022, 07:38:59 AMAre there any freelance SMF experts around doing upgrades for a fee?
There are indeed. Post in the Help Wanted (not for support) (https://www.simplemachines.org/community/index.php?board=50.0). :)
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: AlanDewey on June 28, 2022, 07:28:47 AM
www.mailgun.com is free for 1,000 (?) emails per month.  Then $$
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Steve on June 28, 2022, 08:37:21 AM
Quote from: AlanDewey on June 28, 2022, 07:28:47 AMwww.mailgun.com is free for 1,000 (?) emails per month.  Then $$
Where do you see that? The only pricing plan that I see that includes free emails is a 3 month trial.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Arantor on June 28, 2022, 09:06:25 AM
Their flex plan: https://help.mailgun.com/hc/en-us/articles/360048661093-How-does-PAYG-billing-work-

You pay nothing for the first thousand emails per month, $1 for message 1001 (minimum invoice) then it's pay as you go, $1 per 1000 emails.

If you start edging towards 25k emails a month, better plans exist.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: h_smith on June 28, 2022, 09:13:01 AM
Quote from: Arantor on June 28, 2022, 09:06:25 AMTheir flex plan: https://help.mailgun.com/hc/en-us/articles/360048661093-How-does-PAYG-billing-work-

You pay nothing for the first thousand emails per month, $1 for message 1001 (minimum invoice) then it's pay as you go, $1 per 1000 emails.

If you start edging towards 25k emails a month, better plans exist.

On the sign-up page there is no such option for the Flex-plan?
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Steve on June 28, 2022, 09:15:23 AM
Thanks Arantor. Didn't see that option at the link given above.  :)
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Arantor on June 28, 2022, 09:22:57 AM
Pretty sure the PAYG is the default approach? I don't have my login credentials saved to this device but I can take a look when I'm done with work since I use Mailgun myself.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Steve on June 28, 2022, 09:47:28 AM
No need to check. I just created an account so I know you're correct however there is one caveat. If you want to be able to send to more than 5 recipients you will need to enter payment information. There won't be any charge.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: h_smith on June 28, 2022, 09:56:35 AM
There is a work around for gmail and OAuth 2.0 that I found discussed on another forum.

To work around this, you must do a couple things.

1) Enable 2-factor authentication for the gmail account in question.
2) Generate an application specific password.

https://support.google.com/accounts/answer/185833?authuser=2

After doing so my SMF mail is being flushed out. It is successful. This solution works.

The link where I found the solution was here:

https://hmailserver.com/forum/viewtopic.php?t=38445

I was going to set up my own email server but as it turns out this is not necessary.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Oldiesmann on June 28, 2022, 02:29:35 PM
That's the same solution vbgamer suggested earlier in the topic. Good to know it works.
Title: Re: Gmail now requires OAuth 2.0 to send emails, work around?
Post by: Sudhakar Arjunan on March 03, 2023, 05:04:23 PM
Quote from: Oldiesmann on June 28, 2022, 02:29:35 PMThat's the same solution vbgamer suggested earlier in the topic. Good to know it works.

App password not available for my google workspace. So enabled ( turned on ) less secure apps with smtp-starttls / ssl://smtp.gmail.com / 465 port with gmail credentials worked.