want to get a know-how sms can be sent from a programming language

csharp , vb.net , java United States
  • 12 years ago
    Hi all,I want to send SMS from some language,can anyone tell me the general procedure? sincerly
  • 12 years ago
    It's a bit different for each of the providers (Verizon, Sprint, AT&T, etc) so you may have to do some more research into it, but generally the process involves sending an email to a particular address. With Verizon, it's simply @vtext.com. ([email protected] for example). Here's a simple way to do it: MailMessage msg = new MailMessage(); msg.To = "[email protected]"; msg.From = "[email protected]"; msg.Subject = ""; msg.Body = "This is a text message! Enjoy!"; SmtpMail.Send(msg); An elegant solution would be to create a simple class that builds the email address string based on the provider. Hope this helps!

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.”