[eluser]jkevinburton[/eluser]
thats actually quite easy.
create your template file somewhere in your views...
do a:
Code:
$items = array("name"=>"Kevin", "message"=>"What ever you want here....");
$emailTMP = $this->load->view('path/to/email/html', $items, TRUE);
instead of {name} you would just put <?=$name?>
by putting the optional TRUE in the 3rd parameter you are actually returning the result of that view to the variable: $emailTMP
OR To do it your way:
Code:
$emailTMP = $this->load->view(('path/to/email/html', array(), TRUE);
str_replace("{name}", "kevin", $emailTMP);
and so on for all your variables...
hope that helps!