- October 8, 2019 at 3:14 pm #16983
We just purchased this plugin for a customer, and are off to a bad start. While configuring, we get a fatal error in the config page testing our mail server setiings.
PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /var/customers/webs/xxxxxxxxx/wpdev.xxxxxxxxxxxxxx.org/wp-content/plugins/bbpnns-reply-by-email/includes/controller/ajax.class.php:88
We are using WordPress 5.2.3 on PHP 7.2.19.
- This topic was modified 1 week, 2 days ago by mike hammock.
- October 8, 2019 at 4:24 pm #16986
Thanks for reaching out. PHPMailer class comes bundled with WordPress core and should already be loaded by the time ajax actions get triggered.
I’ll look into it and release a fix asap.
- October 8, 2019 at 5:21 pm #16989
The fix is available in version 1.8.2.
- October 9, 2019 at 10:48 am #17037
That got my past that error, however still had trouble with SMTP connections.
PHPMailer is using opportunistic TLS by default, if the user selects no encryption you should disable this. Default mail server configs will enable a snakeoil certificate that will fail validation.
From SMTPMailer’s documentation:
PHPMailer 5.2.10 introduced opportunistic TLS – if it sees that the server is advertising TLS encryption (after you have connected to the server), it enables encryption automatically, even if you have not set SMTPSecure. This might cause issues if the server is advertising TLS with an invalid certificate, but you can turn it off with $mail->SMTPAutoTLS = false;.
You must be logged in to reply to this topic.