You can configure a custom email provider by handling the OTP Send event using your own API.
For more information, see Configure a custom email provider for one time passcode send events (preview).