Skip to content

Instantly share code, notes, and snippets.

@EsendexDev
Last active November 4, 2015 10:38
Show Gist options
  • Save EsendexDev/f9bfec4047cdf05d4147 to your computer and use it in GitHub Desktop.
Save EsendexDev/f9bfec4047cdf05d4147 to your computer and use it in GitHub Desktop.
Creating and sending multiple voice messages using the Esendex .Net SDK for Visual Basic. Full details here: http://developers.esendex.com/
Dim accountReference = "EX0000123"
Dim messagingService = New MessagingService("Username", "Password")
Dim multipleMessages = New VoiceMessageCollection
'Important! Do not forget to set the account reference on the messages collection.
'This should be the same as the account reference for the individual messages
multipleMessages.AccountReference = accountReference
multipleMessages.Items.Add(New VoiceMessage("447123456789", "Message Body", accountReference))
multipleMessages.Items.Add(New VoiceMessage("447456789123", "Message Body", accountReference))
multipleMessages.Items.Add(New VoiceMessage("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