Last active
September 4, 2015 14:53
-
-
Save EsendexDev/dc902924f68a2922dc71 to your computer and use it in GitHub Desktop.
Creating and sending multiple SMS messages using the Esendex .Net SDK for Visual Basic. Full details here: http://developers.esendex.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dim accountReference = "EX0000123" | |
| Dim messagingService = New MessagingService("Username", "Password") | |
| Dim multipleMessages = New SmsMessageCollection | |
| 'Important! Do not forget to set the acount refence on the messages collection | |
| 'This should be the same as the account reference for the individual messages | |
| multipleMessages.AccountReference = accountReference | |
| multipleMessages.Items.Add(New SmsMessage("447123456789", "Message Body", accountReference)) | |
| multipleMessages.Items.Add(New SmsMessage("447456789123", "Message Body", accountReference)) | |
| multipleMessages.Items.Add(New SmsMessage("447789123456", "Message Body", accountReference)) | |
| messagingService.SendMessages(multipleMessages) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment