add() public method

Add a recipient
public add ( string $email, string $name = null ) : Queue
$email string
$name string
return Queue
Esempio n. 1
0
 public function testToString()
 {
     $q = new Queue('*****@*****.**', 'Some One');
     $q->add('*****@*****.**', 'Someone Else');
     $this->assertEquals('Some One <*****@*****.**>, Someone Else <*****@*****.**>', (string) $q);
 }
Esempio n. 2
0
 /**
  * Add a recipient to the queue
  *
  * @param  string $email
  * @param  string $name
  * @return \Pop\Mail\Mail
  */
 public function add($email, $name = null)
 {
     $this->queue->add($email, $name);
     return $this;
 }