Email Sender snaps throws error

When using the Email Sender snap received the below Error:

Failure: Failed to send email message, Reason: Failed to send email message: 534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor o21-v6sm37108103pfi.165 - gsmtp , Resolution: Please check for valid properties

On looking at the error i see that it requires Application Specific password required however i have set up the Email with correct password. Is it asking for 2nd level authentication password but how so we set it up.

When 2-Step Verification is enabled for a Google account, it isn’t possible to authenticate with one’s regular password for the SMTP connection. If you have already generated an app password by following the instructions on the aforementioned page, you can use it instead of your regular password in the Email Sender password field and authenticate. However, if your organization uses a Single sign-on (SSO) for Google accounts, this may not work.