This solved my problem: Go to "https://id.yandex.com.tr/security/app-passwords", click the + next to the first email in the create app password section at the bottom, create a new password for app access and use this access password instead of your email password in your app.