Address of Rakesh Reddy
14, asdfkhasdf,as dfasdhfasd,fasdfhasd
add_action( 'admin_post_ttx_lc_send_test', 'ttx_lc_handle_send_test' );
function ttx_lc_handle_send_test() {
if ( ! current_user_can( 'manage_options' ) || ! check_admin_referer( 'ttx_lc_send_test' ) ) wp_die( 'Not allowed' );
$template_id = (int) $_POST['template_id'];
$template = ttx_lc_get_template( $template_id );
if ( ! $template ) wp_die( 'Template not found - save it first.' );
$to = sanitize_email( wp_unslash( $_POST['test_email'] ) );
$segment = $template->segment;
if ( ! is_email( $to ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=test_fail' ) );
exit;
}
$variant = ( ! empty( $_POST['variant'] ) && $_POST['variant'] === 'B' ) ? 'B' : 'A';
$use_b = ( $variant === 'B' && $template->ab_test_enabled && $template->subject_b );
$subject = $use_b ? $template->subject_b : $template->subject;
$body = $use_b ? $template->body_b : $template->body;
$sent = ttx_lc_send_test( $to, $segment, $subject, $body, $template );
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=' . ( $sent ? 'test_sent' : 'test_fail' ) ) );
exit;
}
add_action( 'admin_post_ttx_lc_send_test', 'ttx_lc_handle_send_test' );
function ttx_lc_handle_send_test() {
if ( ! current_user_can( 'manage_options' ) || ! check_admin_referer( 'ttx_lc_send_test' ) ) wp_die( 'Not allowed' );
$template_id = (int) $_POST['template_id'];
$template = ttx_lc_get_template( $template_id );
if ( ! $template ) wp_die( 'Template not found - save it first.' );
$to = sanitize_email( wp_unslash( $_POST['test_email'] ) );
$segment = $template->segment;
if ( ! is_email( $to ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=test_fail' ) );
exit;
}
$variant = ( ! empty( $_POST['variant'] ) && $_POST['variant'] === 'B' ) ? 'B' : 'A';
$use_b = ( $variant === 'B' && $template->ab_test_enabled && $template->subject_b );
$subject = $use_b ? $template->subject_b : $template->subject;
$body = $use_b ? $template->body_b : $template->body;
$sent = ttx_lc_send_test( $to, $segment, $subject, $body, $template );
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=' . ( $sent ? 'test_sent' : 'test_fail' ) ) );
exit;
}
add_action( 'admin_post_ttx_lc_send_test', 'ttx_lc_handle_send_test' );
function ttx_lc_handle_send_test() {
if ( ! current_user_can( 'manage_options' ) || ! check_admin_referer( 'ttx_lc_send_test' ) ) wp_die( 'Not allowed' );
$template_id = (int) $_POST['template_id'];
$template = ttx_lc_get_template( $template_id );
if ( ! $template ) wp_die( 'Template not found - save it first.' );
$to = sanitize_email( wp_unslash( $_POST['test_email'] ) );
$segment = $template->segment;
if ( ! is_email( $to ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=test_fail' ) );
exit;
}
$variant = ( ! empty( $_POST['variant'] ) && $_POST['variant'] === 'B' ) ? 'B' : 'A';
$use_b = ( $variant === 'B' && $template->ab_test_enabled && $template->subject_b );
$subject = $use_b ? $template->subject_b : $template->subject;
$body = $use_b ? $template->body_b : $template->body;
$sent = ttx_lc_send_test( $to, $segment, $subject, $body, $template );
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=' . ( $sent ? 'test_sent' : 'test_fail' ) ) );
exit;
}
add_action( 'admin_post_ttx_lc_send_test', 'ttx_lc_handle_send_test' );
function ttx_lc_handle_send_test() {
if ( ! current_user_can( 'manage_options' ) || ! check_admin_referer( 'ttx_lc_send_test' ) ) wp_die( 'Not allowed' );
$template_id = (int) $_POST['template_id'];
$template = ttx_lc_get_template( $template_id );
if ( ! $template ) wp_die( 'Template not found - save it first.' );
$to = sanitize_email( wp_unslash( $_POST['test_email'] ) );
$segment = $template->segment;
if ( ! is_email( $to ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=test_fail' ) );
exit;
}
$variant = ( ! empty( $_POST['variant'] ) && $_POST['variant'] === 'B' ) ? 'B' : 'A';
$use_b = ( $variant === 'B' && $template->ab_test_enabled && $template->subject_b );
$subject = $use_b ? $template->subject_b : $template->subject;
$body = $use_b ? $template->body_b : $template->body;
$sent = ttx_lc_send_test( $to, $segment, $subject, $body, $template );
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=' . ( $sent ? 'test_sent' : 'test_fail' ) ) );
exit;
}
add_action( 'admin_post_ttx_lc_send_test', 'ttx_lc_handle_send_test' );
function ttx_lc_handle_send_test() {
if ( ! current_user_can( 'manage_options' ) || ! check_admin_referer( 'ttx_lc_send_test' ) ) wp_die( 'Not allowed' );
$template_id = (int) $_POST['template_id'];
$template = ttx_lc_get_template( $template_id );
if ( ! $template ) wp_die( 'Template not found - save it first.' );
$to = sanitize_email( wp_unslash( $_POST['test_email'] ) );
$segment = $template->segment;
if ( ! is_email( $to ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=test_fail' ) );
exit;
}
$variant = ( ! empty( $_POST['variant'] ) && $_POST['variant'] === 'B' ) ? 'B' : 'A';
$use_b = ( $variant === 'B' && $template->ab_test_enabled && $template->subject_b );
$subject = $use_b ? $template->subject_b : $template->subject;
$body = $use_b ? $template->body_b : $template->body;
$sent = ttx_lc_send_test( $to, $segment, $subject, $body, $template );
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=' . ( $sent ? 'test_sent' : 'test_fail' ) ) );
exit;
}
add_action( 'admin_post_ttx_lc_send_test', 'ttx_lc_handle_send_test' );
function ttx_lc_handle_send_test() {
if ( ! current_user_can( 'manage_options' ) || ! check_admin_referer( 'ttx_lc_send_test' ) ) wp_die( 'Not allowed' );
$template_id = (int) $_POST['template_id'];
$template = ttx_lc_get_template( $template_id );
if ( ! $template ) wp_die( 'Template not found - save it first.' );
$to = sanitize_email( wp_unslash( $_POST['test_email'] ) );
$segment = $template->segment;
if ( ! is_email( $to ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=test_fail' ) );
exit;
}
$variant = ( ! empty( $_POST['variant'] ) && $_POST['variant'] === 'B' ) ? 'B' : 'A';
$use_b = ( $variant === 'B' && $template->ab_test_enabled && $template->subject_b );
$subject = $use_b ? $template->subject_b : $template->subject;
$body = $use_b ? $template->body_b : $template->body;
$sent = ttx_lc_send_test( $to, $segment, $subject, $body, $template );
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=' . ( $sent ? 'test_sent' : 'test_fail' ) ) );
exit;
}
14, asdfkhasdf,as dfasdhfasd,fasdfhasd
Cash
add_action( 'admin_post_ttx_lc_send_test', 'ttx_lc_handle_send_test' );
function ttx_lc_handle_send_test() {
if ( ! current_user_can( 'manage_options' ) || ! check_admin_referer( 'ttx_lc_send_test' ) ) wp_die( 'Not allowed' );
$template_id = (int) $_POST['template_id'];
$template = ttx_lc_get_template( $template_id );
if ( ! $template ) wp_die( 'Template not found - save it first.' );
$to = sanitize_email( wp_unslash( $_POST['test_email'] ) );
$segment = $template->segment;
if ( ! is_email( $to ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=test_fail' ) );
exit;
}
$variant = ( ! empty( $_POST['variant'] ) && $_POST['variant'] === 'B' ) ? 'B' : 'A';
$use_b = ( $variant === 'B' && $template->ab_test_enabled && $template->subject_b );
$subject = $use_b ? $template->subject_b : $template->subject;
$body = $use_b ? $template->body_b : $template->body;
$sent = ttx_lc_send_test( $to, $segment, $subject, $body, $template );
wp_safe_redirect( admin_url( 'admin.php?page=ttx-lifecycle-mailer&tab=' . $segment . '&ttx_lc_msg=' . ( $sent ? 'test_sent' : 'test_fail' ) ) );
exit;
}
2019
Monday
Open 24h
Tuesday
Open 24h
Wednesday
Open 24h
Thursday
Open 24h
Friday
Open 24h
Saturday
N/A
Sunday
N/A
October 27, 2026 11:12 am local time
Add a review