PaulB
Well-known member
- Affected version
- 2.2.9
Simple copy-paste error:
The error is on the last line: instead of
PHP:
$to = $message->getTo();
$toEmails = $to ? implode(', ', array_keys($to)) : '[unknown]';
$from = $message->getFrom();
$fromEmail = $from ? implode(', ', array_keys($to)) : '[unknown]' ;
array_keys($from)
, it's using array_keys($to)
. This results in confusing error messages such as the following:
Code:
ErrorException: Email to user-email@domain.example from user-email@domain.example failed: [E_WARNING] fwrite(): SSL: Broken pipe