I had the same problem as described in the link provided by njeyaakili above. On the 10th of November Google apparently turned on 2-step verification. I had to turn it off before I could turn on “less secure app access”. When I did my gmail account immediately worked and I could once again receive emails from my google account.