Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET
i have to write a function so that it can send sms to mobile number.so that it can be called any where needed in my web page
Posted 20-Nov-12 17:52pm
Comments
Krunal R at 21-Nov-12 0:07am
   
I'm not much familiar with sms kinda app but ya you can try this,
public string SendSMS(string num, string msg)
{
// write validations for number and message
return msg;
}

1 solution

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

Solution 1

Check the answer Send sms alerts from asp.net application[^], where it says...

Nutshell: ASP.NET does NOT have any inbuilt API support to send out an SMS. You need to go for a third party solution or use something that is found on the Internet. Articles and discussions above should help you out.
So, you need to have one third party support.
 
Please check the discussion links provided there to know more about the implementations.
 
If you want to do, then follow the articles below, they will help you.
1. Easy SMTP Mail Using ASP.NET 2.0[^].
2. Some Easy Ways to Send Emails (via SMTP) and SMS Text Messages[^].
3. Sending SMS using Asp.net[^].
4. Send Single SMS Message - ASP.NET / C#[^].
 
Thanks...

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

  Print Answers RSS
0 OriginalGriff 328
1 Gihan Liyanage 292
2 Sergey Alexandrovich Kryukov 275
3 ClimerChinna 222
4 Abhinav S 187
0 Sergey Alexandrovich Kryukov 8,213
1 OriginalGriff 7,089
2 CPallini 2,598
3 Richard MacCutchan 1,925
4 Abhinav S 1,778


Advertise | Privacy | Mobile
Web03 | 2.8.140826.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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