$data = array( "From" => $params["From"], "SenderEmail" => $params["SenderEmail"], "Message" => $params["Message"], "Subject" => $params["Subject"]); $data = json_encode($data) ;