addCustomData() public method

public addCustomData ( string $customName, mixed $data )
$customName string
$data mixed
Esempio n. 1
0
 /**
  * Attach custom data to a message.
  *
  * @param string $key
  * @param mixed  $data
  *
  * @return \Bogardo\Mailgun\Mail\Message
  */
 public function data($key, $data)
 {
     $this->messageBuilder->addCustomData($key, $data);
     return $this;
 }