Retrieve mail from gmail without using "Application Specific Password"

In PHP I need to receive mail from gmail without using Application Specific Password

when 2-step check is enabled. I have already tried getting emails Application Specific Password

with help imap

and its working. But I don’t want that. I need, without using a special password for the application, I have to receive mail from gmail.

For example: if you go through nimble.com , you can log in through Google and there they will receive emails from gmail using login credentials with only 2-Step Verification or without 2-Step Verification.

+3


source to share


1 answer


You need to use the OAuth 2.0 protocol to authorize the Gmail API. I think the OAuth 2.0 Playground is a great way to learn how it works. Just set your scopes to Gmail API v1 to try the Gmail API.



Then you can check out the PHP client library to see how to use it in your application.

+1


source







All Articles