Try including something like this in your code...
In the mailbody variable, you have the full freedom of HTML with CSS....
PHP Code:
<?
$subject1 = "Here is an E-Mail"; // The subject of the recipients e-mail.
$email1 = "you@you.com"; // Your e-mail, the from address.
$mailbody = "<STYLE type='text/css'><!--
body {
font-family:'Times New Roman', Serif;
font-size:12px;
font-weight:normal;
font-style:normal;
text-align:left;
color:black;
background:none; }
.fastReq {
font-family: Verdana, Helvetica, Sans-Serif;
font-size:12px;
font-weight:bold;
font-style:normal;
color:#4A207E;
background:none; }
.fastReg {
font-family: Verdana, Helvetica, Sans-Serif;
font-size:12px;
font-weight:normal;
font-style:normal;
color:#4A207E;
background:none; } --></STYLE>
<table width=640>
<tr>
<td align='center'><hr width=95%>Online Application Received<hr width=95%><br></td>
</tr>
<tr>
<td><br><img src=\"http://www.legalmedicalstaffing.com/Images/logo.gif\"><br></td>
</tr>
<tr>
<td> <!-- Begin Form Results Table -->
<table width=640 cellpadding=3 cellspacing=2 style='border:1px #4A207E solid; margin-bottom:5px; margin-top:2px;'>
<tr>
<td bgcolor=#FAE22F width='50%'><p class=fastReg>Full Name - <span class=fastReq>$first_name $middle_in $last_name</span></p></td>
<td bgcolor=#FAE22F width='50%'><p class=fastReg>E-Mail Address - <span class=fastReq>$email</span></p></td>
</tr>
<tr>
<td bgcolor=#FAE22F><p class=fastReg>Address - <span class=fastReq>$address</span></p></td>
<td bgcolor=#FAE22F><p class=fastReg>Home Phone # - <span class=fastReq>$home_phone</span></p></td>
</tr>
<tr>
<td bgcolor=#FAE22F><p class=fastReg>Address, cont. - <span class=fastReq>$add2</span></p></td>
<td bgcolor=#FAE22F><p class=fastReg>Cell Phone # - <span class=fastReq>$cell_phone</span></p></td>
</tr>
<tr>
<td bgcolor=#FAE22F><p class=fastReg>City/State/Zip - <span class=fastReq>$city, $state $zip</span></p></td>
<td bgcolor=#FAE22F><p class=fastReg>Work Phone # -
<span class=fastReq>$work_phone</span> Ext. <span class=fastReq>$work_phone_ext</span></p></td>
</tr>
<table>"; //HTML MESSAGE BODY!
//the built in mail function of php in use ([i]$email[/i] field is from a form where the user enters their email.)
mail("$email", "$subject1","$mailbody",
"From: $email1\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
?>
__________________
But dreaming just comes natural
Like the first breath from a baby,
Like sunshine feeding daisies,
Like the love hidden deep in your heart.
~J.Prine
Last edited by Phunky; 12-18-2003 at 04:23 PM..
|