第一个str_replace
工作正常,但以下两个不处理。我测试了替换变量和替换字符串都存在/回显。每个人都需要一个唯一$body.
的吗?
$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";