Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: sending an email from my rpi to my droplet [gmail workaround]

by Aldebaran (Curate)
on May 24, 2022 at 23:49 UTC ( [id://11144170]=note: print w/replies, xml ) Need Help??


in reply to Re^2: sending an email from my rpi to my droplet
in thread getting SMTP capability working

I clicked around a bit to see what was still out there,and I fear that this type of access to gratis webmail is going the way of the dodo.

Not really, just the death of one-step authentication. I've been looking at workarounds and took the bold step of just f***ing googling it, which revealed this reddit thread. The poster describes the workaround for Auth 2.0. 2-step auth has to be authorized, so you're ok if you have a phone number to give to google:

Log into gmail Click the user icon in the top-right corner and select "Manage your Go +ogle Account" Go to the security page (from the list at the left) [This is necessary for the next step, but will stop your scripts from +logging into smtp with your regular password. This is sort of the poi +nt of no return. Make sure you are ready to go all the way and update + all of your email-sending scripts before continuing.] Enable two-ste +p authentication. Once two-step authentication is enabled, go back to the security page. + There should now be a new section called "App Passwords". Select it. + You will probably be asked to log in again. Generate a new app password. I put in "Mail" under "select app" and "O +ther" under "select device," but I don't think any of the information + you put it matters. It will give you a 16-character app password which will be shown in ye +llow. Have your scripts use this password to log into smtp instead of your r +egular password and everything should work. It will not prompt you fo +r 2-step verification. After doing this, my scripts seem to work. I did not have to make any +other changes to the code other than substituting the app password fo +r the original one. Hopefully it helps you too.

Gmailpocalypse this is not....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found