Allow Less Secure Apps Outlook Gmail. Next to access for less secure apps, select turn on. This will automatically change the port to 995 for pop3 or port 993 for imap.
Lalu aktifkan allow less secure apps ke on. I tried all the steps recommended here and elsewhere to connect my gmail account to outlook: You can access your gmail account in your python code now.
Go to the less secure apps section in my account.
If the gmail screen does not have the choice to “turn on” and “turn off” access, then you have either a business class or google apps account. But as google said this action is not recommended, because there will be risks for your gmail account. Go to the less secure app access section of your google account. However for each account that does not work, this setting is set to on.