Forum Replies Created
-
We have overridden the SMTP encryption setting in functions.php and it works now. The key is SMTPAutoTLS parameter in PHPMailer class. The default value is true so it will try to automatically connect via TLS if email server supports it. Also, PHP version > 5.6 requires that the certificates are valid. That’s why it used to work with the previous version of our website because of the PHP version difference. It’s broken since we upgraded.
$phpmailer->SMTPSecure = ”;
$phpmailer->SMTPAutoTLS = false;
$phpmailer->SMTPOptions = array(
‘ssl’ => array(
‘verify_peer’ => false,
‘verify_peer_name’ => false,
‘allow_self_signed’ => true
)
);Please update this issue in the next version. SMTPAutoTLS should be false if encryption is none or SMTPSecure is ”.
Thank you.in reply to: Email sending failedIt seems like this version of DHVC Form always tries to send email using TLS in PHPMailer class regardless of what was selected in the settings. Could you verify that?
We need no encryption in the connection. Could you give us the version that we can completely disable encryption in the settings?
in reply to: Email sending failed