The addRecipients use push_array but it does not work. What am I doing wrong here??
In class.emailer.php
class Emailer { public $sender; public $recipien
You are probably not initiating $recipients when you rewrote the constructor.
$recipients
class Emailer { public $recipients = array(); function __construct($sender) { $this->sender = $sender; }
Should do it. Check your warnings for
Warning: array_push() expects parameter 1 to be array, null given in ...