Shop Forums WordPress Plugins Reply By Email plugin: PHP Fatal Error in config page when testing + aliases

This topic contains 3 replies, has 2 voices, and was last updated by  mike hammock 1 week, 1 day ago.

  • Author
    Posts
  • #16983

    mike hammock
    Participant

    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.

    • This topic was modified 1 week, 2 days ago by  mike hammock.
  • #16986

    vinny
    Keymaster

    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

  • #16989

    vinny
    Keymaster

    Hi Mike,

    The fix is available in version 1.8.2.

    Cheers,
    Vinny

  • #17037

    mike hammock
    Participant

    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;.

You must be logged in to reply to this topic.