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
Beispiel #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()));
 }