SO, there are 2 possible ways to sent OTP:
- Sent OTP via mail
- Sent OTP via phone number
- So, this is something hard to do. Access the file here
- Your mail should have 2F authentication enabled & in-app passwords added.
- First enable 2F authentication in your gmail account. Go through the process mentioned here
- Then follow how to add app password here
- Then you're good to go. Just add your mail id & 16-digit password generated in the space provided in the code
- Run the code
No need to install any new library. Just run the code.
Recommended IDE is PyCharm Community
- How to add app passwords
- How will it look after adding the password
- OTP got in my mail id. So how'll it look like
So, this is something of hard too. Checkout the code here
You need to have twilio account with mail id & phone number verified. Make an account here
First go to console & copy your ACCOUNT_SID & AUTH_TOKEN. You can get them here
Then paste them in the space provided in the code
Run the code. See full documentation here
You need to install a library 'twilio'.Then just run the code.
Recommended IDE is PyCharm Community
- How will the output go
- What if you entered OTP incorrectly?