从asp.net应用程序向手机发送短信的问题 [英] Problem in sending sms to mobile from asp.net application

查看:107
本文介绍了从asp.net应用程序向手机发送短信的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用txtguru的服务通过我的Web应用程序将短信发送到手机.
它正在发送短信,但要在1-5小时后发送.
这不是服务提供商的错,因为当我从他们的站点发送相同的短信时,它只是几分之一.
当我通过Visual Fox Pro制作的软件发送此短信时,它工作正常.

我使用的代码是

Hi,
I am using txtguru''s service to send sms by my web application to mobile.
It is sending sms,but after 1-5 hours.
It is not the fault of service provider because when i am sending the same sms from their site it is within fractions.
when i send this sms through a software made in visual fox pro it is working fine.

the code i am using is

string baseurl = "http://www.txtguru.in/imobile//api.phpusername=abc&password=1234&source=SOFTGEN&dmobile=912555555122&messagehello";
                Stream data = client.OpenRead(baseurl);
                StreamReader reader = new StreamReader(data);
                string s = reader.ReadToEnd();
                data.Close();
                reader.Close();







is there any need of adding delay.

推荐答案

该代码看起来不错,并且如果最终发送,显然可以正常工作.

我觉得问题可能是在SMS提供商端进行缓冲的原因之一.

如果其中有很多是从Web应用程序传入其服务器的,则可能是过载和重复发送直到发送出去的情况,而当您直接浏览它们时,则会被优先考虑.

这是通常的处理方法.
The code looks ok, and is obviously working if it is sending eventually.

I feel that the problem maybe one of buffering at the SMS provider''s end.

If there are many of these coming in from web apps to their server it may be a case of overloading and plodding through until it is sent, whereas when you go directly through them it is being prioritised.

This is the usual way of these things.


该代码段不包含任何特定于SMS的命令.由于您正在使用某人的API并遇到问题,因此我的建议是与他们的技术支持团队联系.
The code snippet doesn''t contain any SMS specific commands. Since you are using someone''s API and have problems with it, my suggestion would be to contact their technical support team.


这篇关于从asp.net应用程序向手机发送短信的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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