add() 공개 메소드

Add a recipient to the queue
public add ( string $email, string $name = null ) : Mail
$email string
$name string
리턴 Mail
예제 #1
0
 public function testTo()
 {
     $m = new Mail('Subject');
     $m->to('*****@*****.**', 'Bob Smith');
     $m->add('*****@*****.**', 'Bubba Smith');
     $m->sendAsGroup(true);
     $this->assertEquals(2, count($m->getQueue()));
 }