How to write a c# code for sending OTP to your registered mail without database??
Loading
How to write a c# code for sending OTP to your registered mail without database??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Jul 6, 2023, 6:11 AM
To send an OTP (One-Time Password) to a registered email without using a database in C#, you can utilize a third-party email service provider such as SendGrid or MailKit.
To send an OTP email using SendGrid in C#, you need to have a SendGrid account and install the SendGrid package from NuGet.
Call the SendOtpEmail function with the recipient's email address: