Hi my server needs following settings, which work in smtp-check.php $config[‘smtp’] = array( ‘host’ => ‘localhost’, ‘port’ => 25, ‘username’ => ”, ‘password’ => ”, ‘encryption’ => ”
But a normal form is throwing an error: Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. in /opt/home/XXX/public_html/quform/vendor/phpmailer/phpmailer/src/PHPMailer.php:2063
How to apply my settings everywhere? Thanks!
This topic was modified 3 years, 7 months ago by dubiousa.
OK i’ve hacked the PHPMailer in line 2059 to if ($this->SMTPAutoTLS && $sslext && ‘ssl’ !== $secure && $this->smtp->getServerExt(‘STARTTLS’)) { $tls = false; } and it works. But i would rather prefer a cleaner solution. Open for ideas! Thanks!