Hello:
I have this script and I would like to send a ordering information table. My problem is that I would like to include HTML coding inside the variable which I’m using to send the email.
This is an example code,
class test {
function solo(){
for($i=0;$i<=10;$i++){
echo "<H4>".$i."</H4><BR>";
}//for($i;$i<=10;$i++){
}//function solo(){
}//class test {
$to = "me@lmyemail.com";
$subject = "Ordering Information";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: [email]you@youremail.com[/email]\n";
$prueba=new test;
$message = "<H3>Your Ordering Infomation is</H3>". $prueba->solo();
if (mail($to, $subject, $message, $headers)) {
echo "The email has been sent";
}
else {
echo "The email has failed";
}
Thanks for anyone who helps