- Issue created by @muzopipigo
- 🇦🇺Australia imclean Tasmania
One alternative is to use the PHPMailer SMTP module with PHPMailer library version 6.9.1 and Decomplexity's OAuth2 wrapper: https://github.com/decomplexity/SendOauth2
Using phpmailer_oauth2, refresh token is never replaced after each call and we got this fatal after token expiration :
League\OAuth2\Client\Provider\Exception\IdentityProviderException: invalid_grant AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-06-13T08:09:44.4738924Z and was inactive for 90.00:00:00
We need then to do manualy the 'Get auth token' process every 90 days.
Refresh the store refresh token after each call.
Thanks
Active
1.0
Code
One alternative is to use the PHPMailer SMTP module with PHPMailer library version 6.9.1 and Decomplexity's OAuth2 wrapper: https://github.com/decomplexity/SendOauth2