From d41e6de5c51578e69fc8eb87ebdca01cebefdb84 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 11 Dec 2015 14:13:56 -0500 Subject: [PATCH] Trying to add more to the email by converting it to html email --- controllers/front.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/front.php b/controllers/front.php index efc7861..4717791 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -155,7 +155,7 @@ class staffords_employment_front $name = $plugin_options['replyto_name']; $email = $plugin_options['replyto_email']; $message = $plugin_options['notification_message'] . "\n\n"; - $message .= admin_url() . "edit.php?post_type=staffords_jobs&page=applications\n\n"; + $message .= 'Your Admin.' . "\n\n"; $headers = array(); $headers[] = "From: {$fromName} <{$from}>"; $headers[] = "Reply-To: {$name} <{$email}>"; @@ -168,12 +168,16 @@ class staffords_employment_front foreach ($depTax as $depTerm) { $deps[] = $depTerm->name; } + add_filter( 'wp_mail_content_type', 'set_html_content_type' ); + wp_mail( $to, 'New Online Application Submission', $message, $headers ); + + remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); } /** -- 2.17.1