public function add($name, $fromEmail = NULL, $fromName = NULL, $subject = NULL, $code = NULL, $text = NULL, $publish = true){
        return $this->request('add', array(
            'name' => $name,
            'from_email' => $fromEmail,
            'from_name' => $fromName,
            'subject'=> $subject,
            'code' => $code,
            'text' => $text,
            'publish' => $publish
        ));
    }
public function add($name, $fromEmail = NULL, $fromName = NULL, $subject = NULL, $code = NULL, $text = NULL, $publish = true){
        return $this->request('add', array(
            'name' => $name,
            'from_email' => $fromEmail,
            'from_name' => $fromName,
            'subject'=> $subject,
            'code' => $code,
            'text' => $text,
            'publish' => $publish
        ));
    }
public function add ( $ name , $ fromEmail = NULL , $ fromName = NULL , $ subject = NULL , $ code = NULL , $ text = NULL , $ publish = true ) { return $ this -> request ( 'add' , array ( 'name' => $ name , 'from_email' => $ fromEmail , 'from_name' => $ fromName , 'subject' => $ subject , 'code' => $ code , 'text' => $ text , 'publish' => $ publish ) ) ; }
Add a new template
@param string $name the name for the new template - must be unique
@param string $fromEmail a default sending address for emails sent using this template
@param string $fromName  a default from name to be used
@param string $subject a default subject line to be used
@param string $code the HTML code for the template with mc:edit attributes for the editable elements
@param string $text a default text part to be used when sending with this template
@param bool $publish set to false to add a draft template without publishing
@return array
@link https://mandrillapp.com/api/docs/templates.JSON.html#method=add
Add a new template