I'm trying to run a python script as a scheduled task. In the script, I send emails through a Gmail account. This is the error I'm getting:
smtplib.SMTPAuthenticationError: (534, b'5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbu\n5.7.14 lHM7vRkhealI_UZ9blIf4nLMNLNZSWlh_P0bp0VkBSbfIoM-ifAOlf8ElncL6twfCu3yD\n5.7.14 _3WNGhfIO5o53YGTAXGbFkLIdvzyOINGNcFDk09XirFC8mvgjZXpnDhkn7FZocS8>\n5.7.14 Please log in via your web browser and then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 f22sm35176971qkl.65 - gsmtp')
When I run my script locally it works fine, because I went to my Google settings for the sender account and changedthe setting to allow less secure apps from OFF to ON. I thought I should be set to go now with that setting, but apparently not. Anyone know of any fixes?