PDA

View Full Version : Templates In email.php


pawel
07-18-2003, 09:06 PM
Hi,
I am trying to add a header and footer to my email messages. For some reason the file email.php won't show templates, any ideas?

I have this right before global.php is included:


$templatesused = "HTMLEmailHeader,HTMLEmailFooter";



and here is how I am including the templates:


if (!$test) {
echo "sending ... \n";

if ($htmlmail="1") {
eval("\$header = \"".gettemplate("HTMLEmailHeader")."\";");
eval("\$footer = \"".gettemplate("HTMLEmailFooter")."\";");
}
else {
eval("\$header = \"".gettemplate("HTMLEmailHeader")."\";");
eval("\$footer = \"".gettemplate("HTMLEmailFooter")."\";");
//$header = "";
//$footer = "";
}
vbmail($user['email'], $subject, "$header $sendmessage $footer", $from);


Thank You,
Paul