-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Oauth2 Uncaught Error: Class 'MyOAuthTokenProvider' #2840
Comments
This looks like you have either not written the code for |
Sorry, I'm not php-programmer, could you please tell me, how can I verify my current namespace?
|
In the code you posted, you don't have a |
We used all guide from: |
You need to define "not working" before we can help you. In the code you posted, you need to remove these two lines, which are only illustrative:
|
As @Synchro pointed out, there are two options in the example code. Option 1: Use a preexisting OAuth2 client If you choose to use option 1, you need to delete the Option 2 part and vice versa. |
@greew |
@sfedu-admin Good to hear! And a good day to you as well :) |
Hi!
We got Token with this guide:
https://github.com/PHPMailer/PHPMailer/wiki/Microsoft-Azure-and-XOAUTH2-setup-guide
And we try to send test email with this php code example:
We got Error:
Fatal error: Uncaught Error: Class 'MyOAuthTokenProvider' not found in /var/www/html/pmail/oauth3.php:99 Stack trace: #0 {main} thrown in /var/www/html/pmail/oauth3.php on line 99
Could you please guide us what is wrong?
The text was updated successfully, but these errors were encountered: