Update to add html markup for the page.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 19:26:40 +0000 (14:26 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 19:26:40 +0000 (14:26 -0500)
controllers/front.php

index 4a9ed9d..03dc409 100644 (file)
@@ -169,11 +169,50 @@ class staffords_employment_front
             $deps[] = $depTerm->name;
         }
         add_filter( 'wp_mail_content_type', array( $this, 'set_html_content_type' ) );
+        $html_head = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+    <meta http-equiv="content-type" content="text/html;charset=utf-8">
+    <title>Online Application Form</title>
+</head>
+<body>
+    <!-- {{{ body -->
+    <p>
+        <font size="4" face="arial, sans-serif">
+            <b>New Online Application Submission</b>
+        </font>
+    </p>
+    <table cellspacing="0" cellpadding="0" bgcolor="#c0c0c0" border="0">
+        <tr>
+            <td>
+                <table cellspacing="1" cellpadding="5" border="0" bgcolor="#c0c0c0" width="400">
+            ';
+        $html_foot = '</table>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <table cellspacing="0" cellpadding="10" border="0" width="400">
+                    <tr>
+                        <td bgcolor="#eeeeee">
+                            <font size="1" face="arial, sans-serif">
+                                To ensure the delivery of these e-mails to your inbox, please add ' . $from . ' to your e-mail Address Book or Safe List.
+                            </font>
+                        </td>
+                    </tr>
+                </table>
+            </td>
+        </tr>
+
+    </table>
+    <!-- }}} -->
+</body>
+</html>';
 
         wp_mail(
             $to,
             'New Online Application Submission',
-            $message,
+            $html_head . nl2br( $message ) . $html_foot,
             $headers
         );