CodeIgniter Forums
Email class: Multiple recipients - only the first one gets sent - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Email class: Multiple recipients - only the first one gets sent (/showthread.php?tid=45961)



Email class: Multiple recipients - only the first one gets sent - El Forum - 10-12-2011

[eluser]Ollie Rattue[/eluser]
Code:
$this->load->library('email');

$this->email->from('[email protected]', 'Your Name');
$this->email->to('[email protected], [email protected], [email protected]');

$this->email->subject('Email Test v2');
$this->email->message('Testing the email class.');

$this->email->send();

The above code follows the user guide yet only the first email address will get an email. I've tried on multiple systems with the same result. Would be great if others could run this code locally to confirm this is a bug in CI.