以下程序是针对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>