From: Steve Sutton Date: Fri, 11 Dec 2015 19:13:56 +0000 (-0500) Subject: Trying to add more to the email by converting it to html email X-Git-Tag: v0.3.3^2~6 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d41e6de5c51578e69fc8eb87ebdca01cebefdb84;p=WP-Plugins%2Fstaffords-employment.git Trying to add more to the email by converting it to html email --- 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' ); } /**