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
The problem is that you're overriding the Email
class's constructor and never calling it (parent::__construct()
). Either call the parent constructor in the ExtendedEmailer
class constructor, or remove the constructor altogether from ExtendedEmailer
if you're not actually using it (which in your sample code, you're not).