Hi all.
What I wonna do is send a email in html format. I have created some variables and just want to add them within a table. I make use of the mail() function.
My basic idea is to create the body of the mail, e.g
$message = '
<html>
<head>
<title>TITLE</title>
</head>
<body>
<p>The message body!</p>
<table>
<tr>
<th>Col1</th><th>Col2</th><th>Col3</th><th>Col4</th>
</tr>
<tr>
<td>$Variable1</td><td>$Variable2</td><td>$Variable3</td><td>$Variable4</td>
</tr>
</table>
</body>
</html>
';
After that, tha mail() will be like:
mail("$Receiver","Subject","$message","From: $Me$headers");
Note that I have already configured the code so that an html mail will be sent (not text mail).
So, the problem is to enter the variables within html.
Any ideas?
Thanks.