sailthru/Sailthru_Client.php
public function previewTemplateWithHTML($template, $email) {
        $data = [ ];
        $data['template'] = $template;
        $data['email'] = $email;

        $result = $this->apiPost('preview', $data);
        return $result;
    }
public function previewTemplateWithHTML($template, $email) {
        $data = [ ];
        $data['template'] = $template;
        $data['email'] = $email;

        $result = $this->apiPost('preview', $data);
        return $result;
    }
public function previewTemplateWithHTML ( $ template , $ email ) { $ data = [ ] ; $ data [ 'template' ] = $ template ; $ data [ 'email' ] = $ email ; $ result = $ this -> apiPost ( 'preview' , $ data ) ; return $ result ; }
Get an HTML preview of a template.
@param $template
@param $email
@return array
@link http://docs.sailthru.com/api/preview
Get an HTML preview of a template .