如何用C#发送彩信

发布于 2024-07-05 03:45:33 字数 310 浏览 4 评论 0原文


我需要通过 C# 应用程序发送彩信。 我已经发现了 2 个有趣的组件: http://www.winwap.com
http://www.nowsms.com

有人有使用其他第三方组件的经验吗?
有人可以解释一下我需要什么样的服务器来发送这些彩信吗? 它是经典的 SMTP 服务器吗?

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 experience with other third party components?
Could someone explain what kind of server I need to send those MMS? Is it a classic SMTP Server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

谜兔 2024-07-12 03:45:33

您可以使用 Twilio 来完成此任务。 您可以深入研究文档以了解具体的实现细节,但是使用 C# 帮助程序库 发送彩信的代码将如下所示:

 // 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" }
    );

免责声明:I为 Twilio 工作。

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.

墨离汐 2024-07-12 03:45:33

通常我总是使用第三方聚合器来完成此操作。 这些消息被编译成 SMIL,它是 MMS 消息的描述语言。 然后这些信息被发送到聚合器,然后聚合器将通过网络运营商的 MMS 网关发送它们。 它们通常按每条消息收费,聚合商将从运营商处批量购买消息。

如果您尝试发送彩信而不收取费用,那么我不确定如何执行此操作,或者是否可能。

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.

早乙女 2024-07-12 03:45:33

你可以自己做。 一些 MMS 公司只有您可以调用的 SOAP API。 您所需要做的就是构造 XML 并通过 URL 发送它。 我以前曾经这样做过一次,但不记得我使用的公司的名称。

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.

小耗子 2024-07-12 03:45:33

这篇文章之前讨论了不同的方法短信,可能对您有帮助。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文