在 .NET 应用程序中接收 SMS 消息 [英] Receiving a SMS message in a .NET application

查看:61
本文介绍了在 .NET 应用程序中接收 SMS 消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写一个 .NET 应用程序来侦听 SMS 消息,然后对其做出反应.

I need to write a .NET application that listens to a SMS message , and then react to it.

我假设我需要一个 SMS 网关来连接我的应用程序和 SMS 的发送者.

I assume i need a SMS gateway to interface between my application and the sender of the SMS.

我怎么能实现这个.监听程序需要是网络服务还是其他什么?

How could i implement this . Would the listening program need to be a web service or something else ?

请给我你的想法.

谢谢,查克

推荐答案

一种简单的方法(如果它适合您的架构)是只需使用手机并在其上设置拦截消息和转发的代码将其添加到您的应用程序中.

One easy way to do it (if it fits your architecture) is to just simply use a mobile phone and have code on it that intercepts the message and the forwards it to your application.

如果您想使用 .net,您可以使用 Windows Mobile 手机并使用 MessageInterceptor 类与 .NET Compact Framework.然后,当您收到消息时,使用任何您想将其转发到您的应用的方法(套接字、串行端口、网络服务等).

If you want to use .net, you can use a Windows Mobile phone and use the MessageInterceptor class with .NET Compact Framework. Then, when you have your message, use whatever method you want to forward it to your app (sockets, serial ports, web services, ...).

这篇关于在 .NET 应用程序中接收 SMS 消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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