# charitable/1.7.0/includes/interfaces/interface-charitable-email.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.7.0/code/includes/interfaces/interface-charitable-email.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0/raw/includes/interfaces/interface-charitable-email.php
- Modified: 2022-09-21T15:16:00+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/code/includes/interfaces/interface-charitable-email.php#L10-L20`.

```php
<?php
/**
 * Charitable Email interface.
 *
 * This defines a strict interface that emails must implement.
 *
 * @version   1.5.0
 * @package   Charitable/Interfaces/Charitable_Email_Interface
 * @author    David Bisset
 * @copyright Copyright (c) 2022, WP Charitable LLC
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU Public License
 */

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

if ( ! interface_exists( 'Charitable_Email_Interface' ) ) :

    /**
     * Charitable_Email_Interface interface.
     *
     * @since 1.2.0
     */
    interface Charitable_Email_Interface {

        /**
         * Returns the email's ID.
         *
         * @since  1.2.0
         *
         * @return string
         */
        public static function get_email_id();

        /**
         * Resend an email.
         *
         * @since  1.5.0
         *
         * @param  int   $object_id An object ID.
         * @param  array $args      Mixed set of arguments.
         * @return boolean
         */
        public static function resend( $object_id, $args = array() );

        /**
         * Checks whether an email can be resent.
         *
         * @since  1.5.0
         *
         * @param  int   $object_id An object ID.
         * @param  array $args      Mixed set of arguments.
         * @return boolean
         */
        public static function can_be_resent( $object_id, $args = array() );
    }

endif;

```
