HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/html/ielts-store/wp-content/plugins/automatewoo/admin/views/email-preview-ui.php
<?php

namespace AutomateWoo;

defined( 'ABSPATH' ) || exit;

/**
 * @var $iframe_url string
 * @var $type string
 * @var $email_subject string
 * @var $template string
 * @var $args array
 */

$test_emails = get_user_meta( get_current_user_id(), 'automatewoo_email_preview_test_emails', true );
if ( ! $test_emails ) {
	$user        = wp_get_current_user();
	$test_emails = $user->user_email;
}

$from_name    = Emails::get_from_name( $template );
$from_address = Emails::get_from_address( $template );
?>

<div class="aw-preview">
	<div class="aw-preview__header">

		<div class="aw-preview__header-left">
			<div class="from">
				<strong><?php esc_html_e( 'From', 'automatewoo' ); ?>:</strong> <?php echo esc_html( $from_name ); ?> &lt;<?php echo esc_html( $from_address ); ?>&gt;
			</div>
			<div class="from"><strong><?php esc_html_e( 'Subject', 'automatewoo' ); ?>:</strong> <?php echo esc_html( $email_subject ); ?></div>
		</div>

		<div class="aw-preview__header-right">
			<form class="aw-preview__send-test-form">
				<input type="text"
					   value="<?php echo esc_attr( $test_emails ); ?>"
					   name="to_emails"
					   class="email-input"
					   placeholder="<?php esc_attr_e( 'Comma separate emails...', 'automatewoo' ); ?>">
				<input type="hidden" name="type" value="<?php echo esc_attr( $type ); ?>">
				<input type="hidden" name="args" value='<?php echo aw_esc_json( wp_json_encode( $args ) ); ?>'>

				<button type="submit" class="button-secondary"><?php esc_html_e( 'Send', 'automatewoo' ); ?></button>
			</form>
		</div>
	</div>

	<iframe class="aw-preview__email-iframe" src="<?php echo esc_url( $iframe_url ); ?>" width="100%" frameborder="0"></iframe>
</div>