Click here to Skip to main content
14,459,361 members
Rate this:
Please Sign up or sign in to vote.
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 12:27pm
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100