I've got a php form and would like to add some css so that the HTML email isn't boring plain text.
$msg = "<h2><strong>EMAIL SUBMISSION FROM</strong></h2><br>" .
PHP_EOL;
$msg .= "your website<br>" . PHP_EOL;
$msg .= "-------------------------------------------------<br><br>" .
PHP_EOL . PHP_EOL;
$msg .= "<strong>Name: </strong>" . PHP_EOL;
$msg .= "$name <br>" . PHP_EOL . PHP_EOL;
$msg .= "<strong>Email: </strong>" . PHP_EOL;
$msg .= "$email <br>" . PHP_EOL . PHP_EOL;
$msg .= "<strong>Contact Number: </strong>" . PHP_EOL;
$msg .= "$phone <br>" . PHP_EOL . PHP_EOL;
$msg .= "<strong>Day in: </strong>" . PHP_EOL;
$msg .= "$dayin <br>" . PHP_EOL . PHP_EOL;
$msg .= "<strong>Day out: </strong>" . PHP_EOL;
$msg .= "$dayout <br><br>" . PHP_EOL . PHP_EOL;
$msg .= "<strong>Notes / Comments: </strong><br>" . PHP_EOL;
$msg .= "$comments" . PHP_EOL . PHP_EOL;
How can I make the "EMAIL SUBMISSION FROM" a different color / font?
I've tried <span style="color:#FF0000;">EMAIL SUBMISSION FROM</span> and that doesn't work
My Headers:
$headers = "From: $email" . PHP_EOL;
$headers .= "Reply-To: $email" . PHP_EOL;
$headers .= "MIME-Version: 1.0" . PHP_EOL;
$headers .= "Content-type: text/html; charset=utf-8" . PHP_EOL;
$headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL;
I'm not sure if anything needs changing in the headers?
Also, at the top of my contact.php file is if (!defined("PHP_EOL")) define("PHP_EOL", "\r\n");
Must this stay the same?
EDIT
$msg = "<html><body>
<strong>EMAIL SUBMISSION FROM</strong><br>
your website<br>
------------------------------------------------------<br><br>
<strong>Name: </strong>
$name <br>
<strong>Email: </strong>
$email <br>
<strong>Contact Number: </strong>
$phone <br>
<strong>Day in: </strong>
$dayin <br>
<strong>Day out: </strong>
$dayout <br><br>
<strong>Notes / Comments: </strong><br>
$comments
</body></html>";