How can we send OTP verification by email? and validate the input OTP in our bot

How can we send OTP verification by email?

You can use it by API
1.Sending OTP via API and pass the email id you got from node.
2.Verify OTP via API by entering OTP from node which received from email .