{\rtf1\ansi\ansicpg1252\cocoartf2822 \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} {\*\expandedcolortbl;;} \paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 \f0\fs24 \cf0
Settings saved.
';\ \});\ \}\ \}\ add_action('admin_init', 'tubeline_save_settings');\ \ function tubeline_send_email($to, $subject, $email_html) \{\ $sent = false;\ if (class_exists('\\\\MailPoet\\\\API\\\\API')) \{\ try \{\ $mailpoet_api = \\MailPoet\\API\\API::MP('v1');\ $mailpoet_api->sendTransactionalEmail([\ 'to' => [$to],\ 'subject' => $subject,\ 'body' => $email_html\ ]);\ $sent = true;\ \} catch (\\Throwable $e) \{\ $sent = wp_mail($to, $subject, $email_html, ["Content-Type: text/html; charset=UTF-8"]);\ \}\ \} else \{\ $sent = wp_mail($to, $subject, $email_html, ["Content-Type: text/html; charset=UTF-8"]);\ \}\ return $sent;\ \}\ \ function tubeline_email_sender_page() \{\ if (!current_user_can('manage_woocommerce')) \{\ wp_die('Sorry, you do not have access to this page.');\ \}\ $default_template = get_option('tubeline_default_template');\ if (!$default_template) \{\ $default_template = 'Hi \{first_name\},
\Thanks again for your order!
\ \{video_block\}\ \{custom_message_block\}\Kind regards,
\Ben
\Here\'92s a short video I recorded just for you:
\Email sent successfully to ' . esc_html($to) . '.
Email failed to send.