title: I am trying to read gmail inbox using imap function (php). but it showing error
body: <p>I am trying to read gmail inbox using php imap function </p>
  
  <p>showing error as</p>
  
  <pre><code>Warning: imap_open(): Couldn't open stream     {imap.gmail.com:993/imap/ssl}INBOX in C:\xampp\htdocs\mail.php on line 10
  Cannot connect to Gmail: [CLOSED] IMAP connection broken (server response)
  Notice: Unknown: Invalid credentials i9mb61071274pbk (errflg=1) in Unknown     on line 0
  
  Notice: Unknown: Invalid credentials i9mb61071274pbk (errflg=1) in Unknown on line 0
  
  Notice: Unknown: Invalid credentials i9mb61071274pbk (errflg=1) in Unknown on line 0
  
  Notice: Unknown: Too many login failures (errflg=2) in Unknown on line 0
  
  Notice: Unknown: [CLOSED] IMAP connection broken (server response) (errflg=1) in Unknown on line 0
  </code></pre>