- This topic has 3 replies, 2 voices, and was last updated 5 years, 3 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
Home › Forums › WordPress Plugins › Reply By Email plugin: PHP Fatal Error in config page when testing + aliases
Hello,
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.
Please advise.
Hi Mike,
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.
Cheers,
Vinny
Hi Mike,
The fix is available in version 1.8.2.
Cheers,
Vinny
Hello,
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:
Opportunistic TLS
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;.
© UseStrict Consulting - All rights reserved