Is there any free gate way or a way that I can use to send SMS from my code.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
On popular wireless carriers you can just email the number. For example AT&T:
5555555555@att.net
Just find the appropriate email servers for the number, then append it to the end of the address. Hope this helps.
Most SMS systems have an email interface. See http://www.tech-recipes.com/rx/939/sms_email_cingular_nextel_sprint_tmobile_verizon_virgin/
The hard part is knowing who the cell provider is for your client.
You can buy a GSM modem and use C# to send AT commands to it to send sms.
Each cell phone provider typically has email addresses that work as aliases for forwarding an email to SMS. Since I believe you have the mobile numbers, if you know the carrier you can use their domain to simply create emails that get redirected to the mobile user's SMS text messages.
there are no free SMS gateways. but they are not expesive. if you buy bulk packages prices are nice. just google "sms gateway" and pick any. they usually have webservice interface or other http interface that makes it easy to call from C#
The gateway is basically a service that you can call from your C# code and communicate with it over HTTP. This is why you can basically use any gateway, no matter if it is based on .NET or not. If you want to host a free one yourself, here's one for Linux.
And here's the WSDL for a service that says it can send SMS messages in the whole world. (Not tested): http://www.webservicex.com/sendsmsworld.asmx?WSDL