示例#1
0
 public function addToRecipients($recipient)
 {
     if (is_string($recipient)) {
         $address = new Mailbox();
         $address->setEmailAddress($recipient);
         $recipient = $address;
     }
     return parent::addToRecipients($recipient);
 }