preg_replace causing dollar signs get removed

后端 未结 5 652
春和景丽
春和景丽 2020-12-19 05:52

I have an email system, where user write a message and it will send the message. The main problem which I just found, consider this code

    $findEmail = $th         


        
5条回答
  •  佛祖请我去吃肉
    2020-12-19 06:19

    If (ever) an template hast been in $getUserEmailTemplate, you did overwrite (destroy) it with this line;

    $getUserEmailTemplate = "@@MESSAGE@@";
    

    So just remove this line and make sure, $getUserEmailTemplate really contains anything and best of all a template.

提交回复
热议问题