Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
[no name] 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

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...
 
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