Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to programming and I really need help please... I created a registration form and a user is expected to input his/her phone number and an OTP will be send to the user phone and SMS. Please I don't have any know on how to go about send the SMS, please I will appreciate help from any who can help me out on how to about. Thank you in advance

What I have tried:

Null.............................................................................................
Posted
Updated 11-Mar-19 11:27am
Comments
Afzaal Ahmad Zeeshan 11-Mar-19 19:01pm    
You need to use an external service provider that connects to SMS gateways to send the message to the recipient. Twilio is one of such service providers.

1 solution

To Get Started
Here's a quick point to get you started with something to try.
Sending an SMS can be as easy as sending an email.
That's right. You can actually send your phone a text message via email.
However, you have to know the format for the phone service.
For example, Verizon wireless is the 10 digit number followed by @vtext.com (5551234567@vtext.com) Here's the official skinny on that: Send text messages using email on a PC | About Verizon[^]

Works The Other Way Too
You can also turn that around and send an email from most txt apps. You just type in the contact as an email address.

How Can This Get You Started?
There are a couple of ways that can help you.

1) First of all, you can start texting to your email address and turn email headers on and then you should be able to see the return address for the txt. When you do then you'll learn the "email" address that you can pull out of the headers so you can return a txt to the person who texted you.

2) Sending an email message is extremely easy in .NET (and probably other technologies too).

I guess the old SmtpClient in .NET is obsolete but you can try the open source MailKit GitHub - jstedfast/MailKit: A cross-platform .NET library for IMAP, POP3, and SMTP.[^]

This will at least get you started.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900