Posted by magic_hat60622 on 08/04/06 16:31
hi all. I have an html file that I need php to read and send as an html
e-mail. The file contains standard html and also some variable names
that I want php to interpolate:
<html>
Hi there. my name is $name
</html>
I'm reading the file like so:
$fh=fopen('./emails/confirmation/index.html', 'r') or die
($php_errormsg) ;
while (! feof($fh)){
$body.=fread($fh,filesize('./emails/confirmation/index.html'));
}
PHP is not interpolating the variable names in the email. Solutions?
-Magic
Navigation:
[Reply to this message]
|