Page 1 of 1

PHP MAILER ERROR

Posted: 03 Oct 2022, 11:11
by brian zimbe
Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting in C:\xampp\htdocs\ATS\vendor\phpmailer\phpmailer\src\PHPMailer.php:1775 Stack trace: #0 C:\xampp\htdocs\ATS\vendor\phpmailer\phpmailer\src\PHPMailer.php(1516): PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Mon, 3 Oc...', 'This is a multi...') #1 C:\xampp\htdocs\ATS\vendor\phpmailer\phpmailer\src\PHPMailer.php(1352): PHPMailer\PHPMailer\PHPMailer->postSend() #2 C:\xampp\htdocs\ATS\lib\Mailer.php(241): PHPMailer\PHPMailer\PHPMailer->send() #3 C:\xampp\htdocs\ATS\lib\Mailer.php(134): Mailer->send(Array, Array, 'Thank You for Y...', '* This is an au...', true, true, Array, 78, true) #4 C:\xampp\htdocs\ATS\lib\CareerPortal.php(466): Mailer->sendToOne(Array, 'Thank You for Y...', '* This is an au...', true) #5 C:\xampp\htdocs\ATS\modules\careers\CareersUI.php(1518): CareerPortalSettings->sendEmail('1250', 'zimbebrian@gmai...', 'Thank You for Y...', '* This is an au...') #6 C:\xampp\htdocs\ATS in C:\xampp\htdocs\ATS\vendor\phpmailer\phpmailer\src\PHPMailer.php on line 1775

Re: PHP MAILER ERROR

Posted: 03 Oct 2022, 12:15
by RussH
Hey there Brian, if you look at your error message, the error is a SMTP connect() failed and then there's a link to troubleshooting.. if you follow that link it says;
This may also appear as SMTP connect() failed, Called Mail() without being connected, Network is unreachable (101) in debug output. This is often reported as a PHPMailer problem, but it's almost always down to local DNS failure, firewall blocking (for example as GoDaddy does), local anti-virus software, or another issue on your local network. It means that PHPMailer is unable to contact the SMTP server you have specified in the Host property, but doesn't say exactly why. It can also be caused by not having the openssl extension loaded (See encryption notes below).

Some techniques to diagnose the source of this error are discussed below.

... please visit that URL to go through the PHPMailer troubleshooting steps. https://github.com/PHPMailer/PHPMailer/ ... leshooting