This is a contact us form submission handler .
First create a Credentials.txt file and add your email in first line and App password for that email in second line.
In the code of app.py change the value of msg["To"] to your mail to which you want to send the email.
In order to simulate the failed captcha verification , set the value of reCAPTCHA to 0 in code in app.py