• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email library bug when only using BCC

#1
[eluser]Ordos[/eluser]
When I was trying to send an email to a list of recipients and only using the BCC field the following error message shows up:

A PHP Error was encountered
Severity: Warning
Message: mail() expects parameter 1 to be string, array given
Filename: libraries/Email.php
Line Number: 1540

For some reason the $to variable is not imploded into a string but passed as an array.

I fixed this by writing this:
Code:
$this->email->to("");
$this->email->bcc($emails);

Instead of only using email->bcc($emails). Could you guys look into this bug?

http://www.jenssegers.be/blog/28/CodeIgn...ibrary-bug


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.