How to send MMS with C#

后端 未结 4 793
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 16:53


I need to send MMS thought a C# application. I have already found 2 interesting components: http://www.winwap.com
http://www.nowsms.com

Does anyone have

4条回答
  •  悲哀的现实
    2021-01-15 17:44

    You could use Twilio to accomplish this. You can dive into the docs for specific implementation details but using the C# helper library the code to send an MMS would look like this:

     // Send a new outgoing MMS by POSTing to the Messages resource */
        client.SendMessage(
            "YYY-YYY-YYYY", // From number, must be an SMS-enabled Twilio number
            person.Key,     // To number, if using Sandbox see note above
            // message content
            string.Format("Hey {0}, Monkey Party at 6PM. Bring Bananas!", person.Value),
            // media url of the image
            new string[] {"https://demo.twilio.com/owl.png" }
        );
    

    Disclaimer: I work for Twilio.

提交回复
热议问题