Hello ppl:
ok heres my question:
I want to do a fill in form then with that iinfo I would like it to make a html email to be send. And what I did it works, it sends the email BUT the email arives in HTML code (with all the tags and code etc etc) instead of the top logo and the table I programed on the php:
Can anyone help please? What Im I doing wrong?
This is the code I made, it basically has one variable, the name... etc etc...
Thank you very much for your time!
<html><body>
<?
$MailTo = "alex@chispito.com";
$MailSubject = "Invoice - Check";
$MailHeader = "From: [email]cc@chispito.com[/email]";
$Envoi = 1;
//name
if ($name== ""){
echo("<font face=verdana size=2>You forgot to write down the name</font><br>");
$Envoi = 0;
}
else
{
}
if ($Envoi == "0")
echo("
<FORM>
<INPUT Type=Button Value=Back
OnClick=history.back();>
<font face=verdana size=2><br><br>* Please fill all the blanks *</font></br></br>");
else
{
}
$MailBody = "<html><head><title>Invoice</title></head><body>
<table border='0' width='100%' id='table1' cellspacing='0' cellpadding='0'>
<tr>
<td></td>
<td>
<p align='center'>
<img border='0' src='http://www.chispito.com/club/images/main_club.gif' width='406' height='41'><br>
This is a sample<td></td>
</tr>
<tr>
<td></td>
<td>$name</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table></body></html>";
if ($Envoi == 1) {
mail($MailTo, $MailSubject, $MailBody, $MailHeader);
echo("
This is a test
");
}
?>
</body></html>