phpmailerException not throw
-
Hi! After debugging email problems. i can confirm what phpmailerException in file class.phpmaileroauth.php dose not thrown, error not shows in logs or display.
example if authentication failed, no error, and wp_mail_failed cant handle it.
If i change it like \Exception then all are ok. exception are at logs and display.
Example code:require('wp-load.php'); $sent_message = wp_mail( $to, $subject, $message, $headers );gmail plugin for example put this
throw new \phpmailerException($this->lang('authenticate'));after line for test line 65
public function smtpConnect($options = array()) {First problem was plugin “WooCommerce PDF Invoices & Packing Slips” 2.2.14 witch result in gmail extension with failure at ($this->smtp->authenticate) send emails with authentication failed and no exception in logs.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘phpmailerException not throw’ is closed to new replies.