Hello,
I would like to send a HTML formatted email using a HTML and PHP template file. It means that the template file I use contains both HTML and PHP. I need to email informations from my DB so the template contains things like:
$res = mysql_query ()...
while ($row = mysql_fetch_array ()...
See ? The problem came up when I tried to send the email with my new host. I used ob functions in order to output HTML and get the contents (ob_start -> ob_get_contents -> ob_flush) but now It doesn't work because the host disabled the ob functions. So I thought about reading the file and kind of evaluating, but of course It doesn't work.
So I would like to read and evaluate the HTML+PHP template file. So I get a clean & neat HTML body for my email.
- I don't want to use a template engine because I use PHP statements like loops, functions...
Any idea ?
JM