the first str_replace works fine but the following two do not process. i tested the replacing variables and the replacing string all are present/echo. do I need a unique $body. for each?
$body.= "--$mime_boundary\n";
$body.= "Content-Type: text/html; charset=\"UTF-8\"\n";
$body.= "Content-Transfer-Encoding: 7bit\n\n";
$body.= str_replace("%%user%%",$en['user'],$html_content);
$body.= str_replace("%%confcode%%",$en['confcode'],$html_content);
$body.= str_replace("%%memb_id%%",$en['memb_id'],$html_content);
$body.= "\n\n";
$body.= "--$mime_boundary--\n";
file $html_content = file_get_contents('/emails/welcome.tpl');$en['confcode']` and$en['memb_id']are numbers. I did a echo and the values are present.