Hi there! I'd like to send some pre-formated emails to my users. So I thought doing something like this.
I'd have several e-mail files, like this:
email_file1:
Dear $user,
Your atempt to include your article "$article" into ....
email_file2:
Dear $user
we received your request, and we intend to fullfil it ...
Ok, in my page code I'd have someplace where I could set these vars like
$user = $users->getName();
$article = $users->getArticleName();
What I'd like to do is, read the e-mail files, replace the variables ($user for eg) for their respective values, and then pass it as the body for the e-mail function.
Any ideas of how to make this???
Thanks