Using nowsms with asp

Using nowsms with asp SearchSearch
Author Message
Pier Chua
New member
Username: Piertiong

Post Number: 1
Registered: 03-2004
Posted on Tuesday, March 02, 2004 - 03:41 am:   

Hi there,

I would like to know whether it is possible to use nowsms with asp?

I have seen the coding for "Send MMS Message.htm" and I do not understand it.

Thanks in advance for any input.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1942
Registered: 10-2002
Posted on Tuesday, March 02, 2004 - 09:15 pm:   

Hi,

"Send MMS Message.htm" is pure HTML, so it is relatively straight-forward.

However, I can see why it could be confusing because it uses "HTTP file upload" to upload attachments. And that is a little different from a standard HTML form.

The key differences for an "HTTP file upload" form are that the form method is "POST", and the encoding type is "multipart/form-data". Plus there are "INPUT" elements of type "FILE" which indicates that files can be uploaded for these fields.

(Most forms either use a "GET" method, or they use "POST" with the default encoding type of "application/x-www-form-urlencoded". But it is not possible to upload files using either of those encodings.)

Most of the ASP examples that I see on the web when searching are examples of how a server side ASP script can receive HTTP file uploads ... not how you would encode HTTP file upload as a client in an ASP script (although maybe you need to do both).

I would recommand a Google search using the following keywords:

+"file upload" +ASP +"multipart/form-data"

... and hopefully you can find some useful information there.

I wish I could help more directly. We do have PHP and Java examples that we can point to here in the discussion board.

-bn
Pier Chua
New member
Username: Piertiong

Post Number: 2
Registered: 03-2004
Posted on Wednesday, March 03, 2004 - 01:34 am:   

thanks for the reply man.

but where is the data posted to? and the part where the mms is actually being sent.

thanks again. appreciate any input.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1953
Registered: 10-2002
Posted on Wednesday, March 03, 2004 - 05:25 pm:   

Before you get too far into things, make sure that you can submit messages using the HTML in our web interface. (I just want to make sure that you understand that you need to have SMS and/or MMS connectivity out from the NowSMS server connecting to an SMS service provider and/or using GSM modems.)

To tell NowSMS to send an SMS message, you make an HTTP GET request to NowSMS, and include the message details in the URL that you submit. You do this by connecting to the "Port number for web interface" that is defined on the "Web" page of the NowSMS configuration dialog.

I'd suggest that you start by generating requests to send SMS messages before jumping to MMS, because I think that will help get you started.

http://www.nowsms.com/documentation/ProductDocumentation/sending_messages/sendin g_text_messages.htm

http://www.nowsms.com/documentation/ProductDocumentation/sending_messages/url_pa rameters_for_sending_messages.htm

Sending MMS is more difficult, because you have more data to send.

Usually, you would use HTTP POST to submit the message. The format for the raw HTTP transaction is detailed at the following link:

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

At the bottom of that link, there is also an explanation of how you can still use a simpler HTTP GET request to send MMS messages if you store the MMS message content pieces on another web server.

-bn
Pier Chua
New member
Username: Piertiong

Post Number: 3
Registered: 03-2004
Posted on Friday, March 05, 2004 - 03:14 am:   

thanks for your reply.

actually what i want to do is to send a MMS message to a nokia emulator in my pc.
Pier Chua
New member
Username: Piertiong

Post Number: 5
Registered: 03-2004
Posted on Friday, March 05, 2004 - 03:44 am:   

thanks for your reply.

actually what i want to do is to send a MMS message to a nokia emulator in my pc.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1978
Registered: 10-2002
Posted on Friday, March 05, 2004 - 04:12 pm:   


quote:

actually what i want to do is to send a MMS message to a nokia emulator in my pc.




Then ignore all of this.

The Nokia emulators that I have seen have a proprietary way of loading an MMS into the emulator, and cannot receive them through standard protocols. Follow the instructions in the documentation for the emulator.

-bn
Ashutosh
Unregistered guest
Posted on Sunday, March 07, 2004 - 07:22 pm:   

HI Everybody. Is There any free activex component which can be used to send SMS through ASp with a mobile phone connected with a serial port.

Please help me out !!!!!!!!!!!!!
If Some please mail me the URL of the same at this address ashugzb@softhome.net. I will be very thankfull to you.