You should enable two step verification first on your google account to be able to use an app password.
just now enabled but not showing app password,
If you’ve set up 2-Step Verification but can’t find the option to add an app password, it might be because:
Your Google Account has 2-Step Verification set up only for security keys
You’re logged into a work, school, or another organization account.
Your Google Account has Advanced Protection
Una vez configurado la verificación en dos pasos: entra el siguiente enlace:
@hendry thanks for quick link, I have generated the password. now I use generated password or I need to use my mail id password
Generated password, of course.
i am trying to set gmail configuration but unable to find App Password option in google account > security.
there is a any other option??