Send mms

Send mms SearchSearch
Author Message
Anonymous
 
Posted on Wednesday, August 25, 2004 - 02:20 pm:   

hi bryce,
do you have sample delphi code for send MMS.help me please, i am really need it.thank you before.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3344
Registered: 10-2002
Posted on Wednesday, August 25, 2004 - 04:39 pm:   

Sorry, I don't have any experience in Delphi.

But hopefully I can point you in the right direction.

If you want to submit an MMS message to NowSMS, the easiest way is to use the proprietary URL submission approach, described at the following link:

http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Submitting_MMS_Messages_URL.htm

If you look at the example in the above link, you're probably going to say "Yeah, right ... that doesn't look easy."

But I'll explain why it often is easy.

The HTTP POST described in that link is a standard "HTTP file upload" form. There are tools available for most development environments to simplify the process of performing HTTP file upload, as it is quite a common task.

I did a quick web search to find an example of this type of task in Delphi.

And the following link looks promising, as it shows how to do this type of transaction using Indy:

http://delphi.about.com/gi/dynamic/offsite.htm?site=http%3A%2F%2Fwww.matlus.com% 2Fscripts%2Fwebsite.dll%2FTutorials%3FDelphiTCPIP%26IndyMultiPartFormData%265

Basically, you'd use AddFormField to set the variables that you need to set when posting an MMS message to NowSMS (PhoneNumber, MMSFrom, MMSSubject and MMSText ... not all of which are required). And you would use AddFile to add the content file(s) using a field name of MMSFile.

If this example points you in the right direction, I'd appreciate if you could share the Delphi code that you come up with as an example for others.

-bn