Skip to content

Instantly share code, notes, and snippets.

@EsendexDev
Last active September 4, 2015 14:53
Show Gist options
  • Save EsendexDev/dc902924f68a2922dc71 to your computer and use it in GitHub Desktop.
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/
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