|
| [VB.NET] | |
| Sub SendEx
(NotificationID As String, Message As SmsMessage)
|
|
| NotificationID |
| Notification ID |
| Message |
| SMS Message |
| VB.NET
Example |
Switch to language:
[C#] |
|
| | 'Create personalizer object and Session object |
| | Dim pers As New PersonalizerRef.Personalizer()
|
| | Dim sess As New SessionRef.Session()
|
| | Dim SessionID As
String = "" |
| | Try |
| | SessionID = pers.CreateSession("LogonName", "Password") |
| | 'Create SMS notification object |
| | Dim objSMS As New SMSRef.SMS()
|
| | ' Create and fill sms message object |
| | Dim message As New SMSRef.SmsMessage()
|
| | message.Target = "+11005118196" |
| | message.Text = "This is SMS Notification Message" |
| | message.From = "From AcrossCommunications" |
| | ' Create server notification object |
| | Dim SMSNotifID As
String = sess.CreateSMSNotification(SessionID) |
| | objSMS.SendEx(SMSNotifID,message) |
| | objSMS.Release(SMSNotifID) |
| | sess.Release(SessionID) |
| | Catch e As Exception |
| | 'Print exception message e.Message |
| | sess.Release(SessionID) |
| | End Try |