Hello people,
I need your help please.......I've made html mail in php and it looks like this;
$a_variable="content";
$body= '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Bestelling dit ben ik - Internationaal</title>
</head>
<body>
$a_variable
</body>
</html>';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
if ($from && $to && $subject && $body)
{
if (mail($to, $subject, $body, $headers))
echo, print "Well done.";
else
echo "2 bad";
}
}
this is only an example, but the problem is that in the mail that is send the variable still looks like this: $a_variable
Why won't it work?
And is it possible to give variables in HTML_MAILS?
please let me know
Greetz Rich