public function preview()
    {
        // Enable theme for preview (may be needed for Shortcodes)
        Config::nest();
        Config::modify()->set(SSViewer::class, 'theme_enabled', true);

        $content = $this->customise([
            'Body' => $this->record->getEmailBodyContent(),
            'HideFormData' => (bool) $this->record->HideFormData,
            'Fields' => $this->getPreviewFieldData()
        ])->renderWith($this->record->EmailTemplate);

        Config::unnest();

        return $content;
    }
public function preview()
    {
        // Enable theme for preview (may be needed for Shortcodes)
        Config::nest();
        Config::modify()->set(SSViewer::class, 'theme_enabled', true);

        $content = $this->customise([
            'Body' => $this->record->getEmailBodyContent(),
            'HideFormData' => (bool) $this->record->HideFormData,
            'Fields' => $this->getPreviewFieldData()
        ])->renderWith($this->record->EmailTemplate);

        Config::unnest();

        return $content;
    }
public function preview ( ) { // Enable theme for preview (may be needed for Shortcodes) Config :: nest ( ) ; Config :: modify ( ) -> set ( SSViewer :: class , 'theme_enabled' , true ) ; $ content = $ this -> customise ( [ 'Body' => $ this -> record -> getEmailBodyContent ( ) , 'HideFormData' => ( bool ) $ this -> record -> HideFormData , 'Fields' => $ this -> getPreviewFieldData ( ) ] ) -> renderWith ( $ this -> record -> EmailTemplate ) ; Config :: unnest ( ) ; return $ content ; }
Renders a preview of the recipient email.
Renders a preview of the recipient email .