[eluser]Scal[/eluser]
Hi;
is it possible to use a View as email template? Or do I have to create a file like a view and read the file content to set it as the email body value?
Something like:
$body = $>this->view->load('mytemplate', $data_array);
$this->email->message($body);
Or should I use "regular PHP" to:
- open the 'mytemplate.php' file in read mode
- store it locally
- replace the parameter(s) with their actual values on the local variable
- pass the local variable to the Email library message method
Thanks for the feed back.
Scal