|
| [VB.NET] | |
| Sub SendTextDocument
(NotificationID As String, Number As String, Text As String)
|
|
| NotificationID |
| Notification ID |
| Number |
| Target phone number |
| Text |
| Message Text |
| 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 Fax notification object |
| | Dim objFax As New FaxRef.Fax()
|
| | ' Create server notification object |
| | Dim FaxNotifID As
String = sess.CreateFaxNotification(SessionID) |
| | 'Send Text to fax syncronously |
| | objFax.SendTextDocument(FaxNotifID, "11005118196", "This is a simple fax notification text") |
| | sess.Release(SessionID) |
| | Catch e As Exception |
| | 'Print exception message e.Message |
| | sess.Release(SessionID) |
| | End Try |