Setting the "Allow less secure apps" setting on Gmail

1. Open the Gmail account and go to My Account.

2. Click Sign-in & Security.
3. If enabled, set 2-Step Verification to Off.

4. Turn on the Allow less secure apps option.