In my previous question, I listed how I'm currently using a functional MVC controller on an ASP.NET IIS site to handle some of the incoming SMS/MMS messages for my Twilio phone number. However, I've been unable to find the appropriate documentation for the next stage of what I'm wanting to accomplish:
How do I respond with an MMS message?
The full code listing for my SMSController is in the linked SO question and seems to work fine for sending basic text-only SMS messages, but I'm running into difficulty trying to get it to send MMS messages. I've tried constructing a Messaging.Message object by setting the .Body() and .Media() options:
[...]
If SMSMessage.ToUpper.Trim = "JEDI" Then
Dim Response As New Messaging.Message
Response.Body(JediCode)
Response.Media(New Uri("https://my.domain.com/content/media/jedi.gif"))
SMSResponse.Message(Response)
[...]
This method overload seems to almost work - it sends the image, but the GIF's animation is somehow lost - but, for one thing, the IDE is flagging it with a warning that that method is deprecated and to use the .Append() method instead. I tried that but it seems to fail to send anything and the Error Logs in my Twilio console show an HTTP retrieval failure.
Obviously, the above code is just while I play around and test things, but there is a definite possibility that we would be sending animated images as a part of the business flow of our use case. Is there something I'm missing here to properly send an MMS message as a response to an incoming SMS?
