使用C#发送短信(Winforms) [英] SMS Sending using C#(Winforms)

查看:108
本文介绍了使用C#发送短信(Winforms)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的应用程序中向手机(所有操作员)发送批量短信???

webservicex.net无法正常工作..

你知道发送的短信吗?网关(免费或付费)??

如果你知道plz发送链接和代码......

你知道任何短信发送网络服务(工作)。

Plz帮我...

提前完成..

How to send bulk SMS to mobiles(all operators) in my Application???
webservicex.net is not working..
Do you know any sms sending gateways(free or paid)??
If u know plz send links and codes...
Do you know any sms sending webservices(working).
Plz help me...
Thanx in advance..

推荐答案

这是我的帮助你



http:// myashkap .wordpress.com / 2011/03/26 / sending-sms-via-c-using-way2sms / [ ^ ]
this my help you

http://myashkap.wordpress.com/2011/03/26/sending-sms-via-c-using-way2sms/[^]


使用代码



在本文中,我使用的是已存在的Web服务。由于此Web服务与ICQ即时消息服务相结合,使我们的工作更轻松。借助此Web服务,我们可以将短信发送到印度,美国,英国,马来西亚,日本等国家。在本文中,我使用了www.webservicex.com上的Web服务,他们提供Web服务定义语言(WSDL)发送短信链接。



发送短信给全世界:http://www.webservicex.com/sendsmsworld.asmx?WSDL

用于向印度发送短信:http://www.webservicex.net/SendSMS.asmx?WSDL



这里我附上了发送的示例代码短信。

Using the code

In this article I am using a web service which already exists. Since this web service is tie up with ICQ instant messaging service make our work easier. With the help of this web service we can able to send SMS to various countries like India, US, UK, Malaysia, Japan etc. In this article I have used the web service from www.webservicex.com they are providing Webs Service Definition Language (WSDL) link for sending SMS.

For sending SMS to the world: http://www.webservicex.com/sendsmsworld.asmx?WSDL
For sending SMS to India: http://www.webservicex.net/SendSMS.asmx?WSDL

Here I m attaching the sample code for sending SMS.
private void Send_Click(
 object sender, System.EventArgs e)
    {
      try
      {
        SmsTest.net.webservicex.www.SendSMS smsIndia= 
          new SmsTest.net.webservicex.www.SendSMS();
        SmsTest.com.webservicex.www.SendSMSWorld smsWorld =  
          new SmsTest.com.webservicex.www.SendSMSWorld();
        if(rdoType.SelectedValue == "1")
          smsIndia.SendSMSToIndia(txtMobileNo.Text.Trim(), 
            txtEmailId.Text.Trim(), txtMessage.Text);
        else 
          smsWorld.sendSMS(txtEmailId.Text.Trim(), 
           txtCountryCode.Text.Trim(), txtMobileNo.Text.Trim(), 
           txtMessage.Text);
        lblMessage.Visible = true;
        lblMessage.Text="Message Send Succesfully";
      }
      catch(Exception ex)
      {
        lblMessage.Visible = true;
        lblMessage.Text="Error in Sending message"+ex.ToString();
      }
    }

    private void rdoType_SelectedIndexChanged(
     object sender, System.EventArgs e)
    {
      if(rdoType.SelectedValue =="1")
        txtCountryCode.Enabled = false;
      else
        txtCountryCode.Enabled = false;

    }


CodeProject上有很多很好的文章。他们可能会让你前进:

1. 通过Web服务使用.NET发送短信 [ ^ ]

2.使用.NET发送短信 [ ^ ]



除此之外,你提到过SMS Gateway提供商。市场上有一些好的提供商,虽然是付费的。

1. SMS Gateway [ ^ ]

2. Gateway4SMS [ ^ ]

3. SMS Lane [ ^ ]



希望这会有所帮助。

一切顺利。
There are very nice articles at CodeProject. They may get you going :
1. Sending SMS using .NET through a Web service[^]
2. Sending SMS using .NET[^]

Other than this, you mentioned about SMS Gateway providers. There are some good providers, though paid, in the market.
1. SMS Gateway[^]
2. Gateway4SMS[^]
3. SMS Lane[^]

Hope this helps.
All the best.


这篇关于使用C#发送短信(Winforms)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆