I\'m designing my html emails, these are to be a block of html containing variables that i can store in a $template variable.
My problem comes with the storing in the va
Don't tie your template to PHP. You may need to support the same template on other platforms in the future.
What we do is that we use SSI (Server Side Include) echo command to inject variables into HTML. If you don't have SSI support, you can simply replace the vars in PHP with regular expressions. The template looks like this,
Welcome ,
Where USERNAME is the variable name. This looks more verbose than simply putting PHP vars in the template but you will benefit in long run.