01-29-2020, 08:27 PM
In your Gmail security settings enable 2-step verification. Then below it will be "App passwords". Create one for Mail + Windows computer. Use the generated password in script. Tested, works.
May need to disable "enable less secure apps" before enabling 2-step verification. Maybe it will be disabled automatically. It seems now this setting is unavailable, or I can't find.
May need to disable "enable less secure apps" before enabling 2-step verification. Maybe it will be disabled automatically. It seems now this setting is unavailable, or I can't find.