How to send SMS through ASP.Net website

Posted by Hetalkumar1980 under Regular Expressions on 12/13/2010 | Points: 10 | Views : 4830 | Status : [Member] | Replies : 5
Please let me know how to send SMS through ASP.Net website. If possible please provide me the code.

Hetalkumar M Kachhadiya

http://dotnetsqlinterview.blogspot.com



Responses

Posted by: SheoNarayan on: 12/13/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
In any case, you will need to get in touch with the SMS Gateway that will accept your sms text and process it, you can go through below links, it may help you in writing code and getting idea about SMS Gateway.

http://forums.asp.net/t/1191703.aspx
http://forums.techarena.in/technology-internet/1159063.htm

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Hetalkumar1980, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lalji_mer on: 12/13/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi,

Check this article you will get source code and guide

http://www.dotnetspider.com/resources/29863-Sending-SMS-Through-NET.aspx

LP MER

Hetalkumar1980, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 12/13/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
I think i am seeing this question for the 100th times in 6 years. hmm I think i should write an article that would do just that. I will make it clear that there is no free way to do this, some people think there is a free as we do with emails

Thank you for posting at Dotnetfunda
[Administrator]

Hetalkumar1980, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Szurcsii on: 3/25/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Hetalkumar1980,

I know some softwares which not free, as Vuyiswamb writes but you can send messages through ASP.Net with it. You can develop is almost every programming language with it.
I suggest for you to check out the Ozeki NG SMS Gateway. In this link you will find examples for .Net development: http://ozekisms.com/index.php?owpn=400&info=asp_sms_example

I hope it helps you,

Hetalkumar1980, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: A2H on: 3/25/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Twilio is one of the Best Library available for .Net. You can check out the below links for more details.

https://github.com/twilio/twilio-csharp
http://www.markhagan.me/Samples/Send_SMS_Using_Twilio_ASPNet
Sample Code

static void Main(string[] args)
{
TwilioRest.Account account;
Hashtable h;

// ACCOUNT_SID and ACCOUNT_TOKEN are from your Twilio account
account = new TwilioRest.Account(ACCOUNT_SID, ACCOUNT_TOKEN);

h = new Hashtable();
h.Add("From", CALLER_ID);
h.Add("To", "PHONE NUMBER TO SEND TO");
h.Add("Body", "The answer is 42");

account.request(String.Format("/{0}/Accounts/{1}/SMS/Messages", API_VERSION, ACCOUNT_SID), "POST", h));

}


Thanks,
A2H
My Blog

Hetalkumar1980, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response