public function add($email, $name = null) { $this->queue->add($email, $name); return $this; }
public function testTo() { $m = new Mail('Subject'); $m->to('*****@*****.**', 'Bob Smith'); $m->add('*****@*****.**', 'Bubba Smith'); $m->sendAsGroup(true); $this->assertEquals(2, count($m->getQueue())); }