Fatal error Call to a member function insert() on a non-object [closed]

You need to make sure you are using the global $wpdb

function subscribers(){
    global $wpdb;
    if(isset($_POST["email"])){
        $email = $_POST["email"];
        echo $wpdb->insert($wpdb->easymail_subscribers, array('email' => $email));
    }
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)