# optin/trunk/includes/integrations/base/class-mail-integration.php

WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation, version trunk. 54 lines.

- Page: https://pluginprobe.com/plugins/optin/trunk/code/includes/integrations/base/class-mail-integration.php
- Raw: https://pluginprobe.com/plugins/optin/trunk/raw/includes/integrations/base/class-mail-integration.php
- Modified: 2026-05-06T10:46: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/optin/trunk/code/includes/integrations/base/class-mail-integration.php#L10-L20`.

```php
<?php // phpcs:ignore
/**
 * Mail Integration Interface
 *
 * @package optin
 * @subpackage optin/intergrtions
 */

namespace OPTN\Includes\Integrations\Base;

interface MailIntegration {

	/**
	 * Constructor
	 *
	 * @param int $account_id account id.
	 */
	public function __construct( $account_id );

	/**
	 * Adds a subscribe.
	 *
	 * @param array $data data.
	 * @return bool
	 */
	public function add_subscriber( $data ): bool;


	/**
	 * Add a lead to leads table.
	 *
	 * @param array $data data.
	 * @return void
	 */
	public function add_lead( $data );

	/**
	 * Gets all the default and custom fields
	 *
	 * @param array $args receive data as array.
	 * @return array
	 */
	public function get_fields( $args = array() ): array;


	/**
	 * Gets all the lists or groups or tags
	 *
	 * @param array $args receive data as array.
	 * @return array
	 */
	public function get_lists( $args = array() ): array;
}

```
