最初のstr_replace
ものは問題なく動作しますが、次の 2 つは処理されません。置換変数と置換文字列がすべて存在/エコーであることをテストしました。それぞれに一意のものが必要$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";