File size: 271 Bytes
b496b7a |
1 2 3 4 5 6 7 8 9 10 11 |
import random
def send_otp_to_email(email):
# Generate OTP
otp = ''.join([str(random.randint(0, 9)) for _ in range(6)])
# Simulate sending OTP to email (print for demonstration)
print(f"OTP {otp} sent to email address: {email}")
return otp
|