Google
 Wap技术相关栏目
 相关文章

SMS开发-ASP发送


 日期:2005-9-22 15:48:00     [Host01.Com]   访问:     [全屏查看全文]

以下程序是针对Inixus SMSCOM。大家可以去下载http://www.inixus.com/main/smscom10.zip

1. 从网络上发送信息可以使用COM组件来实现。

2. smsform.asp例子:

<%

'Variable Declaration

If Request("PhoneNo") <> "" and Request("Message") <> "" Then
Set SMSObj=Server.CreateObject("Inixus.SMSCOM")
if SMSObj.SendSMS(Request("PhoneNo"), Request("Message")
status = "SMS sent."
else
status = "SMS Failed."
end if
Set SMSObj = Nothing
End If

%>

<html>
<head>
<title></title>
</head>

<body>
<%= status %>
<form name="theform" action="smsform.asp" method="POST">
Phone: <input type="text" name="PhoneNo" maxlength=20><br>
Message: <input type="text" name="Message" size=40 maxlength=160><br>

<input type="Submit" name="Submit" value="Send SMS">
</form>
</body>
</html>

上一篇:SMS开发-使用AT指令  下一篇:短消息服务(SMS)编程介绍