public function Add($name, $subject, $fromEmail, $fromName, $templateType = \ElasticEmailEnums\TemplateType::RawHTML, $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, $bodyHtml = null, $bodyText = null, $css = null, $originalTemplateID = 0) {
        return $this->sendRequest('template/add', array(
                    'name' => $name,
                    'subject' => $subject,
                    'fromEmail' => $fromEmail,
                    'fromName' => $fromName,
                    'templateType' => $templateType,
                    'templateScope' => $templateScope,
                    'bodyHtml' => $bodyHtml,
                    'bodyText' => $bodyText,
                    'css' => $css,
                    'originalTemplateID' => $originalTemplateID
        ));
    }
public function Add($name, $subject, $fromEmail, $fromName, $templateType = \ElasticEmailEnums\TemplateType::RawHTML, $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, $bodyHtml = null, $bodyText = null, $css = null, $originalTemplateID = 0) {
        return $this->sendRequest('template/add', array(
                    'name' => $name,
                    'subject' => $subject,
                    'fromEmail' => $fromEmail,
                    'fromName' => $fromName,
                    'templateType' => $templateType,
                    'templateScope' => $templateScope,
                    'bodyHtml' => $bodyHtml,
                    'bodyText' => $bodyText,
                    'css' => $css,
                    'originalTemplateID' => $originalTemplateID
        ));
    }
public function Add ( $ name , $ subject , $ fromEmail , $ fromName , $ templateType = \ ElasticEmailEnums \ TemplateType :: RawHTML , $ templateScope = \ ElasticEmailEnums \ TemplateScope :: EEPrivate , $ bodyHtml = null , $ bodyText = null , $ css = null , $ originalTemplateID = 0 ) { return $ this -> sendRequest ( 'template/add' , array ( 'name' => $ name , 'subject' => $ subject , 'fromEmail' => $ fromEmail , 'fromName' => $ fromName , 'templateType' => $ templateType , 'templateScope' => $ templateScope , 'bodyHtml' => $ bodyHtml , 'bodyText' => $ bodyText , 'css' => $ css , 'originalTemplateID' => $ originalTemplateID ) ) ; }
Create new Template. Needs to be sent using POST method
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $name Filename
@param string $subject Default subject of email.
@param string $fromEmail Default From: email address.
@param string $fromName Default From: name.
@param \ElasticEmailEnums\TemplateType $templateType 0 for API connections
@param \ElasticEmailEnums\TemplateScope $templateScope Enum: 0 - private, 1 - public, 2 - mockup
@param string $bodyHtml HTML code of email (needs escaping).
@param string $bodyText Text body of email.
@param string $css CSS style
@param int $originalTemplateID ID number of original template.
@return int
Create new Template . Needs to be sent using POST method