to() public method

Alias to add a recipient to the queue
public to ( string $email, string $name = null ) : Mail
$email string
$name string
return Mail
コード例 #1
0
ファイル: MailTest.php プロジェクト: nicksagona/PopPHP
 public function testTo()
 {
     $m = new Mail('Subject');
     $m->to('*****@*****.**', 'Bob Smith');
     $m->add('*****@*****.**', 'Bubba Smith');
     $m->sendAsGroup(true);
     $this->assertEquals(2, count($m->getQueue()));
 }