$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
);