Trying to add more to the email by converting it to html email
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 19:13:56 +0000 (14:13 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 19:13:56 +0000 (14:13 -0500)
controllers/front.php

index efc7861..4717791 100644 (file)
@@ -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  .= '<a href="' . admin_url() . 'edit.php?post_type=staffords_jobs&page=applications">Your Admin</a>.' . "\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' );
     }
 
     /**