$str = "merhaba {ad}, {eposta} adresi ile sistemimize kayıt oldunuz vs vs."; $str = str_replace("{ad}", $user->name, $str); $str = str_replace("{eposta}", $user->email, $str);