Option Explicit

Private mySMSConnection As EasySMSClient
Const username = "myUserName"
Const password = "myPassword"
Const Tel = "4799887766"
Const msg = "This is a test message"


Private Sub main()
    Dim mySMS As sendSMSType
    Set mySMSConnection = New EasySMSClient
    If mySMSConnection.Connect(username, password) Then
        mySMS.msgID = mySMSConnection.getNextMsgId
        mySMS.Tel = Tel
        mySMS.msg = msg
        If mySMSConnection.sendSMS(mySMS) Then
            Debug.Print "Message sent successfully"
        Else
            Debug.Print "Problems with sending message"
        End If
    Else
        Debug.Print "Connection problems"
    End If
    mySMSConnection.disconnect
    Set mySMSConnection = Nothing
End Sub

 

This website is based on the technology of ViaNett Publishing
 Copyright ViaNett 2001-2005

 Contact us

...
mo mt sms mms cpa java visual basic activex microsoft sql http mysql php linux asp receive send bulk operator mobile cellphone mobiltelefon telefon gateway operatør telenor netcom telia vodafone smpp ucp emi-ucp yap

Choose your language:

Or visit our site in
english
to get more info about: