Looks like you are re-declaring the existing class. I did a diff on the two version, and I couldn’t find any significant changes
I tracked this down to an error with the theme having a phpmailer as well. The theme also declare PHPmailer. Do you have a way to not re-declare PHP mailer?
The only way I could get this to work (I’m no PHP / WP expert) was to take your PHPMailer class and rename it PHPMailer2, then adjust all places that were extending PHPMailer to PHPMailer2. I then commented out the phpmailerException deceleration. Not sure if this will actually allow me to use the plugin, though. So far it doesn’t crash my website which is good
-
This reply was modified 9 years, 1 month ago by
nihonnik.
Same problem, there is already a class-phpmailer.php in standard wordpress 4.7.4, so I am not even sure it’s needed to have PHP included in this plugin.
Hi, WordPress includes a customized version of PHPMailer that doesn’t support OAuth2. That’s why the plugin needs to include the full PHPMailer library to support the OAuth2 feature.
I have another SMTP plugin that doesn’t include the PHPMailer library. However, It uses username/password authentication instead of Oauth2.
https://ww.wp.xz.cn/plugins/smtp-mailer/
Hello ,
And what is the solution if we want to use OAuth2 feature ?
Regards,