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

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