OK, I see what you're trying to do. If your code looks like this:
<?
$name = "I. M. Weasel";
$file = file("welcome_mail.txt");
$file_string = implode("",$file);
eval ("\$mailbody = \"$file_string\";");
echo $mailbody;
?>
and your textfile looks like this:
Dear $name;<BR>
Please pay your cable TV bill.<BR>
Sincerely, the management.
... eval() will consider the textfile to be a double-quoted string, and will perform variable substitutions:
Dear I. M. Weasel;<BR>
Please pay your cable TV bill.<BR>
Sincerely, the management.
So there's nothing wrong with your eval statement. What's the textfile look like?