PHP Classes

less secure access being removed from gmail: The gmail access package from PHP Classes will stop working

Recommend this page to a friend!
  All requests RSS feed  >  less secure access being removed from...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

less secure access being removed from gmail

Edit

Picture of Paul Beaudoin by Paul Beaudoin - 1 year ago (2022-05-01)

The gmail access package from PHP Classes will stop working

This request is clear and relevant.
This request is not clear or is not relevant.

+1

I am using the Gmail access package from Mr. Lemos for some years now but google informs us the 'less secure access' will be turned off on May 30. Are there any planned upgrades or instructions on how to deal with this, please?

Many thanks

Paul

  • 2 Clarification requests
  • 4. Picture of Paul Beaudoin by Paul Beaudoin - 1 year ago (2022-05-03) Reply

    Thanks for the answer. I am just pulling messages ... no sending. Does that make a difference? Are there any existing instructions on how to integrate OAuth? Many thanks Paul

    • 1. Picture of Manuel Lemos by Manuel Lemos - 1 year ago (2022-05-01) Reply

      Hello Paul,

      What is exactly is the class that you are using that accesses Gmail?

      Could it be the SMTP class, POP3, OAuth or something else?

      • 2. Picture of Paul Beaudoin by Paul Beaudoin - 1 year ago (2022-05-02) in reply to comment 1 by Manuel Lemos Comment

        Hi Manuel I thought you might respond! I am not sure I understand your request. I use this line to connect to gmail: $imap = imap_open($hostname, $username, $password) or die('Cannot connect to Gmail: ' . imap_last_error());

        where hostname is: $hostname = '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX';

        It is this line, I presume that google is telling me will not work after May 30 when they remove 'less secure access'. They recommend OAuth and I have had a brief look at packages that implement this but I do not see how to integrate it into your (very fine!) code. As you have probably gathered, I am not a professional coder (at least not in PHP) so I am hoping for a relatively simple and straightforward solution. If you can point me in the right direction, I'd be most grateful. And thanks again for the email package. We communicated maybe about a year ago on this and once I got google to 'reset' the account, it has worked fine. Regards Paul

      • 3. Picture of Manuel Lemos by Manuel Lemos - 1 year ago (2022-05-03) in reply to comment 2 by Paul Beaudoin Comment

        Yes, you can send and receive email messages using OAuth authentication.

        Do you want to just pull messages from the Gmail account or do you also want to send email messages?

      • 5. Picture of Manuel Lemos by Manuel Lemos - 1 year ago (2022-10-11) in reply to comment 2 by Paul Beaudoin Comment

        Hello Paul,

        I have a solution that works now with the SASL package. Do you still need it?

    Ask clarification

    Recommend package
    : 
    :