addTag() public method

public addTag ( string $tag )
$tag string
示例#1
0
 /**
  * Add Mailgun tags to the message.
  * Tag limit is 3.
  *
  * @param string|array $tags
  *
  * @return \Bogardo\Mailgun\Mail\Message
  */
 public function tag($tags)
 {
     $tags = array_slice((array) $tags, 0, 3);
     foreach ($tags as $tag) {
         $this->messageBuilder->addTag($tag);
     }
     return $this;
 }