


If you want to be sure, that the SMS has been sent
succesfully to the ASPSMS gateway, just add some
lines of additional code. Here is the complete list of
possible error codes.
<html>
<body>
<%
'------------------------------------------------------------
' aspsms.com(ponent) (c) 2001 by VADIAN.NET AG
'------------------------------------------------------------
' simple sms example with error validation
'------------------------------------------------
Set SMS = Server.CreateObject("ASPSMS.Booster")
SMS.Userkey = "I3QHMYKEY6E"
SMS.Password = "mypassword"
SMS.Originator = "0041763255533"
SMS.MessageData = "hello dad, call me in an hour! love, cathy"
SMS.AddRecipient "0044734255533"
SMS.SendTextSMS
SMS.DeleteAllRecipients
if SMS.ErrorCode<>1 then
response.write("An error occured:<br>")
response.write("SMS.Errorcode = " & SMS.ErrorCode & "<br>")
response.write("SMS.ErrorDescription = " & SMS.ErrorDescription)
else
response.write("SMS sent to gateway.")
end if
Set SMS = Nothing
%>
</body>
</html>