edbe4909 by Jeff Balicki

eee

1 parent 344c4fd3
......@@ -20,7 +20,14 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
$email = $submitted_data['your-email'];
$subject = 'WYN Important Registration Information';
$message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Confirmation.html');
$stream_opts = [
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
];
$message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Confirmation.html', false, stream_context_create($stream_opts));
$headers_customer = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $email , $subject, $message, $headers_customer);
......@@ -40,7 +47,14 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
delete_autoload_map_transient();
$email = get_post_meta($post_id, 'wpsl_email', true);
$subject = 'WYN Registration Aproved';
$message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Acceptance.html');
$stream_opts = [
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
];
$message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Acceptance.html', false, stream_context_create($stream_opts));
$headers_customer = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $email , $subject, $message, $headers_customer);
......@@ -57,7 +71,14 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
update_post_meta($post_id, 'notification_sent_for_delete_project', true);
$email = get_post_meta($post_id, 'wpsl_email', true);
$subject = 'WYN Registration Denied';
$message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Denied.html');
$stream_opts = [
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
];
$message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Denied.html', false, stream_context_create($stream_opts));
$headers_customer = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $email , $subject, $message, $headers_customer);
......