You are here

function Mandrill::templates_add in Mandrill 6

@link https://mandrillapp.com/api/docs/templates.html#method=add

Return value

array|Mandrill_Exception

File

./mandrill.class.php, line 198

Class

Mandrill

Code

function templates_add($name, $code) {
  return $this
    ->request('templates/add', array(
    'name' => $name,
    'code' => $code,
  ));
}