Click here to Skip to main content
13,254,754 members (51,119 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i have to write a function so that it can send sms to mobile that it can be called any where needed in my web page
Posted 20-Nov-12 18:52pm
Krunal R 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
Please Sign up or sign in to vote.

Solution 1

Check the answer Send sms alerts from 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[^].
4. Send Single SMS Message - ASP.NET / C#[^].


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171114.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2017
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