How to send MMS with C#

后端 未结 4 794
爱一瞬间的悲伤
爱一瞬间的悲伤 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:24

    You could do it yourself. Some MMS companies just have a SOAP API that you can call. All you need to do is construct the XML and send it off via a URL. I have done this once before, but can't remember the name of the company I used.

    0 讨论(0)
  • 2021-01-15 17:24

    This post earlier discussed different approaches for SMS and might be helpful for you.

    0 讨论(0)
  • 2021-01-15 17:34

    Typically I have always done this using a 3rd party aggregator. The messages are compiled into SMIL, which is the description language for the MMS messages. These are then sent on to the aggregator who will then send them through the MMS gateway of the Network Operator. They are typically charged on a per message basis and the aggregators will buy the messages in a block from the operators.

    If you are trying to send an MMS message without getting charged then I am not sure how to do this, or if it is possible.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题