# charitable/1.6.9/templates/emails/preview.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.6.9. 20 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.6.9/code/templates/emails/preview.php
- Raw: https://pluginprobe.com/plugins/charitable/1.6.9/raw/templates/emails/preview.php
- Modified: 2019-01-18T08:13:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.6.9/code/templates/emails/preview.php#L10-L20`.

```php
<?php
/**
 * Email Preview
 *
 * @author  Studio 164a
 * @package Charitable/Templates/Emails
 * @version 1.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) { exit; }

if ( ! isset( $_GET[ 'email_id' ] ) ) {
    return;
}

$email = charitable_get_helper( 'emails' )->get_email( $_GET[ 'email_id' ] );
$email_object = new $email;

echo $email_object->preview();
```
