[RSS Feed/News] \XF\Mail\Mailer::send: $fromEmail contains To addresses, not From addresses

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Simple copy-paste error:
PHP:

Code:
   $to = $message->getTo();
   $toEmails = $to ? implode(', ', array_keys($to)) : '[unknown]';

   $from = $message->getFrom();
   $fromEmail = $from ? implode(', ', array_keys($to)) : '[unknown]' ;
The error is on the last line: instead of array_keys($from), it's using array_keys($to). This results in confusing error messages such as the following:
Code:

ErrorException: Email to [email protected] from [email protected] failed: [E_WARNING] fwrite()...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom