Wrong email format causes an error

Looks like the wrong email format (dot at the end) was not detected and it produces an error.

Fatal error: Uncaught exception 'PHPMailer\PHPMailer\Exception' with message 'Invalid address:  (to): brandtxxx@hotmail.com.' in /var/www/meetsee/plugins/phpmailer/PHPMailer.php:1035
Stack trace:
#0 [internal function]: PHPMailer\PHPMailer\PHPMailer->addAnAddress('to', 'brandtkb@hotmai...', '')
#1 /var/www/meetsee/plugins/phpmailer/PHPMailer.php(998): call_user_func_array(Array, Array)
#2 /var/www/meetsee/plugins/phpmailer/PHPMailer.php(902): PHPMailer\PHPMailer\PHPMailer->addOrEnqueueAnAddress('to', 'brandtxxx@hotmai...', '')
#3 /var/www/meetsee/modules/boonex/smtpmailer/classes/BxSMTPModule.php(94): PHPMailer\PHPMailer\PHPMailer->addAddress('brandtkb@hotmai...')
#4 [internal function]: BxSMTPModule->serviceSend('brandtkb@hotmai...', '=?UTF-8?B?Tm91d...', '<html>??    <he...', 'MIME-Version: 1...', '-fadmin@twoforl...', true, false, Array)
#5 /var/www/meetsee/inc/classes/BxDolRequest.php(97): call_user_func_array(Array, Array)
#6 /var/www/meetsee/inc/classes/BxDolRequest.php(57): BxDolRequest::_perform(Array, 'Module', 'se in /var/www/meetsee/plugins/phpmailer/PHPMailer.php on line 1035

  • 604
  • More
Replies (1)