subst:
Code:
$message=str_replace("$email",$user[email],$message);
$message=str_replace("$username",$user[username],$message);
$message=str_replace("$password",$user[password],$message);
with:
Code:
$message=str_replace("\$email",$user[email],$message);
$message=str_replace("\$username",$user[username],$message);
$message=str_replace("\$password",$user[password],$message);
(add slashes before $ otherwise it will parse as a var) :-)