Modified sendMessage.php