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); ...@@ -20,7 +20,14 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
20 20
21 $email = $submitted_data['your-email']; 21 $email = $submitted_data['your-email'];
22 $subject = 'WYN Important Registration Information'; 22 $subject = 'WYN Important Registration Information';
23 $message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Confirmation.html'); 23 $stream_opts = [
24 "ssl" => [
25 "verify_peer"=>false,
26 "verify_peer_name"=>false,
27 ]
28 ];
29
30 $message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Confirmation.html', false, stream_context_create($stream_opts));
24 31
25 $headers_customer = array('Content-Type: text/html; charset=UTF-8'); 32 $headers_customer = array('Content-Type: text/html; charset=UTF-8');
26 wp_mail( $email , $subject, $message, $headers_customer); 33 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); ...@@ -40,7 +47,14 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
40 delete_autoload_map_transient(); 47 delete_autoload_map_transient();
41 $email = get_post_meta($post_id, 'wpsl_email', true); 48 $email = get_post_meta($post_id, 'wpsl_email', true);
42 $subject = 'WYN Registration Aproved'; 49 $subject = 'WYN Registration Aproved';
43 $message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Acceptance.html'); 50
51 $stream_opts = [
52 "ssl" => [
53 "verify_peer"=>false,
54 "verify_peer_name"=>false,
55 ]
56 ];
57 $message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Acceptance.html', false, stream_context_create($stream_opts));
44 58
45 $headers_customer = array('Content-Type: text/html; charset=UTF-8'); 59 $headers_customer = array('Content-Type: text/html; charset=UTF-8');
46 wp_mail( $email , $subject, $message, $headers_customer); 60 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); ...@@ -57,7 +71,14 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
57 update_post_meta($post_id, 'notification_sent_for_delete_project', true); 71 update_post_meta($post_id, 'notification_sent_for_delete_project', true);
58 $email = get_post_meta($post_id, 'wpsl_email', true); 72 $email = get_post_meta($post_id, 'wpsl_email', true);
59 $subject = 'WYN Registration Denied'; 73 $subject = 'WYN Registration Denied';
60 $message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Denied.html'); 74
75 $stream_opts = [
76 "ssl" => [
77 "verify_peer"=>false,
78 "verify_peer_name"=>false,
79 ]
80 ];
81 $message = file_get_contents(get_site_url().'/wp-content/themes/understrap-child/inc/Registration-Denied.html', false, stream_context_create($stream_opts));
61 82
62 $headers_customer = array('Content-Type: text/html; charset=UTF-8'); 83 $headers_customer = array('Content-Type: text/html; charset=UTF-8');
63 wp_mail( $email , $subject, $message, $headers_customer); 84 wp_mail( $email , $subject, $message, $headers_customer);
......