GRAYBYTE WORDPRESS FILE MANAGER9787

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/wpforms-lite/src/Tasks/Actions/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/wpforms-lite/src/Tasks/Actions//EntryEmailsTask.php
<?php

namespace WPForms\Tasks\Actions;

use WPForms\Tasks\Task;
use WPForms\Tasks\Meta;

/**
 * Class EntryEmailsTask is responsible for defining how to send emails,
 * when the form was submitted.
 *
 * @since 1.5.9
 */
class EntryEmailsTask extends Task {

	/**
	 * Action name for this task.
	 *
	 * @since 1.5.9
	 */
	const ACTION = 'wpforms_process_entry_emails';

	/**
	 * Class constructor.
	 *
	 * @since 1.5.9
	 */
	public function __construct() {

		parent::__construct( self::ACTION );

		$this->async();
	}

	/**
	 * Get the data from Tasks meta table, check/unpack it and
	 * send the email straight away.
	 *
	 * @since 1.5.9
	 * @since 1.5.9.3 Send immediately instead of calling \WPForms_Process::entry_email() method.
	 *
	 * @param int $meta_id ID for meta information for a task.
	 */
	public static function process( $meta_id ) {

		$task_meta = new Meta();
		$meta      = $task_meta->get( (int) $meta_id );

		// We should actually receive something.
		if ( empty( $meta ) || empty( $meta->data ) ) {
			return;
		}

		// We expect a certain number of params.
		if ( count( $meta->data ) !== 5 ) {
			return;
		}

		// We expect a certain meta data structure for this task.
		list( $to, $subject, $message, $headers, $attachments ) = $meta->data;

		// Let's do this NOW, finally.
		wp_mail( $to, $subject, $message, $headers, $attachments );
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:22
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:22
giriqfky / giriqfky
0644
AsyncRequestTask.php
1.091 KB
April 24 2025 14:53:30
giriqfky / giriqfky
0644
DomainAutoRegistrationTask.php
2.376 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
EntryEmailsMetaCleanupTask.php
2.113 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
EntryEmailsTask.php
1.338 KB
March 19 2020 18:01:16
giriqfky / giriqfky
0644
FormsLocatorScanTask.php
12.729 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
IconChoicesFontAwesomeUpgradeTask.php
3.069 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
Migration173Task.php
5.297 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
Migration175Task.php
11.817 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
PurgeSpamTask.php
1.904 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
SquareSubscriptionTransactionIDTask.php
3.045 KB
April 24 2025 14:53:30
giriqfky / giriqfky
0644
StripeLinkSubscriptionsTask.php
6.806 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644
WebhooksAutoConfigurationTask.php
2.392 KB
September 26 2024 15:36:36
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF