PHP Classes

imap access to gmail

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  imap access to gmail  
Subject:imap access to gmail
Summary:too many login failures
Messages:7
Author:Paul Beaudoin
Date:2021-09-23 00:07:06
Update:2021-10-06 21:22:30
 

  1. imap access to gmail   Reply   Report abuse  
Picture of Paul Beaudoin Paul Beaudoin - 2021-09-23 00:17:19
All
'too many login failures'
I've been at this for a while now and can't get past the error quoted.

This is the connect string:
$imap = imap_open($hostname, $username, $password) or die('Cannot connect to Gmail: ' . imap_last_error());
where:
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = 'xxx.com';
$password = 'xxx';

Username and pass are verified by loging in from the browser.

I have enabled imap in php.ini; enabled less secure apps in google, used the links found to unlock the account. This is the 2nd account I've used to try and resolve but always the same error. This worked up to some months ago and been at it off and on since. I'd really like to get this resolved. I've been all over the net and followed various suggestions all producing the same result. Can someone please point out my error?

Many thanks
P

There are 6 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.