Google Mail OAuth Class "WHMCS\Module\Mail\SmtpOauth" not found Errors
Symptom
After updating to WHMCS v8.6.0, users of the Google Mail Provider using the OAuth 2 SMTP Authentication setting, may encounter a Class not found
error when sending emails:
Class "WHMCS\Module\Mail\SmtpOauth" not found
The email is not sent.
Solution
Apply the 8.6.1 Maintenance Release via Utilities > Update WHMCS.
Hotfix
We have created a hotfix for WHMCS 8.6.0 to resolve the error:
https://whmcs.community/files/file/180-core-18254-google-mail-oauth/
Workaround
- Go to Configuration > System Settings > General Settings > Mail Tab.
- Click Configure Mail Provider.
- Select Password as the SMTP Authentication setting.
- Enter your Google Mail account's password or an App Specific Password.
- Click Save.
An App Specific Password is required if Two Factor Authentication is enabled on your Google Mail account.