# formidable/6.7/classes/controllers/FrmEmailSummaryController.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 6.7. 34 lines.

- Page: https://pluginprobe.com/plugins/formidable/6.7/code/classes/controllers/FrmEmailSummaryController.php
- Raw: https://pluginprobe.com/plugins/formidable/6.7/raw/classes/controllers/FrmEmailSummaryController.php
- Modified: 2023-12-12T20:37: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/formidable/6.7/code/classes/controllers/FrmEmailSummaryController.php#L10-L20`.

```php
<?php
/**
 * In-plugin summary emails controller
 *
 * @since 6.7
 * @package Formidable
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

/**
 * Class FrmEmailSummaryController
 */
class FrmEmailSummaryController {

	/**
	 * Maybe send summary emails.
	 */
	public static function maybe_send_emails() {
		$emails = FrmEmailSummaryHelper::should_send_emails();
		if ( ! $emails ) {
			return;
		}

		foreach ( $emails as $email ) {
			if ( method_exists( 'FrmEmailSummaryHelper', 'send_' . $email ) ) {
				call_user_func( array( 'FrmEmailSummaryHelper', 'send_' . $email ) );
			}
		}
	}
}

```
