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

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

- Page: https://pluginprobe.com/plugins/charitable/1.7.0.1/code/templates/emails/preview.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0.1/raw/templates/emails/preview.php
- Modified: 2022-09-21T15:01:56+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.7.0.1/code/templates/emails/preview.php#L10-L20`.

```php
<?php
/**
 * Email Preview
 *
 * @author  WP Charitable LLC
 * @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();
```
