[Python] Why am I getting "App Password Is Required" if have generated and I'm using it?

Discussão em 'Python' iniciado por Stack, Março 22, 2025.

  1. Stack

    Stack Membro Participativo

    The main logic of my project is written on python, and HTML, CSS, JS are used for the front-end.

    I'm using SMTP for sending verification emails. In my .env file I have declared following variables

    • SMTP_SERVER=smtp.mail.ru
    • SMTP_PORT=587
    • SMTP_USERNAME= my_email
    • SMTP_PASSWORD= app_pass_I_generated

    But im getting the following error

    Attempting to send email to danielhakobyan460@gmail.com via smtp.mail.ru:587...
    Starting TLS...
    Email sending failed: (535, b'5.7.0 NEOBHODIM parol prilozheniya https://help.mail.ru/mail/security/protection/external / Application password is REQUIRED')
    Error occurred while sending email: 500: Failed to send verification email: (535, b'5.7.0 NEOBHODIM parol prilozheniya https://help.mail.ru/mail/security/protection/external / Application password is REQUIRED')


    I have tryed to look in documentation, asked ChatGPT, but useless. The user is added to my DB, but it's throwing this error and do not send the verification email.

    Is this a problem related to mail, app password, which I think it is from error I'm getting? Or should I try find the issue in other parts of my code.

    Thanks in advance

    Continue reading...

Compartilhe esta Página