first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
/**
* Class ES_Send_Test_Email
*/
class ES_Send_Test_Email {
/**
* ES_Send_Test_Email constructor.
*
* @since 4.6.0
*/
public function __construct() {
}
/**
* Send Test Email
*
* @since 4.6.0
*/
public function send_test_email( $params = array() ) {
if ( !empty( $params['email'] )) {
$email = $params['email'];
} else {
$email = ES_Common::get_test_email();
}
$response = array( 'status' => 'ERROR' );
if ( ! empty( $email ) ) {
$subject = ES()->mailer->get_test_email_subject( $email );
$content = ES()->mailer->get_test_email_content();
$response = ES()->mailer->send_test_email( $email, $subject, $content );
}
return $response;
}
}