English 中文(简体)
Send SMS/MMS, especially MMS using .Net w C#
原标题:

Does anyone know how to send an MMS message with the .net framework? Theres sample code for SMS but not MMS. I have a GPRS modem already installed on my server.

问题回答

I don t think there is any easy way to do this natively in .NET without writing your own code to do the SMS/MMS encoding and decoding. You could try one of the following libraries:

For GPRS modem,

Sending SMS will be through AT commands, sending MMS is through MM1 protocol.

There are few libraries available that you can use for both SMS and MMS sending if you do not want to write your own code

MessagingToolkit from twit88.com

Activexperts SMS and MMS

NowSMS

so far the only native .NET solution is messagingtoolkit. The others can be used for .NET as well they are COM components.

Also, depending on your mobile handset, for example, Nokia, for selected specific models, one could pull down a library to interact with the handset via data cable (USB/Serial), and depending on the supplied documentation, there may be an activex dll which you can tlbimp the activex to get the wrappers and invoke the methods/functions/events while the data cable is connected to it. My experience was with an rather old handset Nokia 3330, and used the Nokia suite, to send SMS.

This will be dependant on the handset/GPRS modem used, the manufacturer may not tell you how to use it so a bit of trial and error will be necessary...sorry if this is not an exact answer you are looking for...

Hope this helps, Best regards, Tom.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签