On 7/2/22 13:08, American Citizen wrote:
> Google changed their gmail login procedure last May 30th, requiring 2
> factor authentication. Has anyone been able to work out a command line
> script using mailx with gmail successfully?
>
> - Randall
>

Although I haven't used mailx or other CLI mail in ages, Google started
providing "app passwords" for all non-google and non-Android access
quite a while back.  Now that 2FA i required, you'll need to set that
up.  I switched to 2FA when Google first provided it and when 2FA was
still optional for using Thunderbird etc.  Your mail program will need
to be able to use OAuth 2.0, or turn on "less secure app access".

https://support.google.com/accounts/answer/185833?hl=en#zippy=
https://support.google.com/accounts/answer/6010255?hl=en

https://obrienlabs.net/mailx-send-linux-email-gmail/


-Ed


Reply via email to