MMS using VB

MMS using VB SearchSearch
Author Message
Philip Fagan
New member
Username: En1gma

Post Number: 2
Registered: 02-2004
Posted on Thursday, February 26, 2004 - 05:36 pm:   

Is there any way of capturing a .jpeg image using VB6 and then sending it through my nokia phone and data cable,using nowsms??
hhhhhhhhhhhhh
Unregistered guest
Posted on Friday, March 05, 2004 - 04:53 am:   

Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2038
Registered: 10-2002
Posted on Wednesday, March 10, 2004 - 01:07 am:   

Hi Philip,

Sorry I've been running a bit behind on discussion board replies over the past two weeks, and I've missed quite a few messages in the process.

Unfortunately, I don't have any VB examples.

Submitting an MMS message is more complex than submitting an SMS, because you have to transfer the content of images and other content.

Submitting an MMS requires that you use HTTP POST instead of HTTP GET. Unless you store the components of the MMS message on another web server in which case you can send NowSMS an HTTP GET request that includes references to the HTTP URLs to fetch that include the MMS message components.

This is described at the "raw HTTP level" in the following link:

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

For an example in Java, see:

http://support.nowsms.com/discus/messages/485/1360.html

For an example in PHP, see:

http://support.nowsms.com/discus/messages/1/1113.html

Unfortunately, I know very little about VB, but I think you could do the HTTP transaction using "Msxml2.XMLHTTP" or "WinHttp.WinHttpRequest.5". I've got a simple JScript example that can be used for submitting an SMS at the following link:

http://support.nowsms.com/discus/messages/12/1227.html

These same objects should be accessible via VB.
Marcelo Muzilli
New member
Username: Muzilli

Post Number: 3
Registered: 03-2004
Posted on Wednesday, March 10, 2004 - 01:42 pm:   

Bryce,

the GIF picture format is the only type to send to my phone?

TIA,
Marcelo
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2060
Registered: 10-2002
Posted on Wednesday, March 10, 2004 - 04:19 pm:   


quote:

the GIF picture format is the only type to send to my phone?




No, most of the colour phones support both GIF and JPEG (and sometimes PNG).
Marcelo Muzilli
New member
Username: Muzilli

Post Number: 4
Registered: 03-2004
Posted on Thursday, March 11, 2004 - 02:02 pm:   

I would like to use the Java code in the link above (http://support.nowsms.com/discus/messages/485/1360.html) to try to send any MMS file to my phone.
But the code was write to run like an applet Java. Somebody has the same code using a Servlet technology? I´m trying to transfer but it gives me some exceptions like "The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.".

Any help?

Marcelo Muzilli
Marcelo Muzilli
New member
Username: Muzilli

Post Number: 5
Registered: 03-2004
Posted on Thursday, March 11, 2004 - 02:04 pm:   

In time: thank you Bryce, the problem with the kind of the picture was the relations between the size of my picture and my phone.

Thank you.

Marcelo Muzilli
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2079
Registered: 10-2002
Posted on Thursday, March 11, 2004 - 06:34 pm:   

Marcelo,

I don't have any experience in Java Servlets, but with the error text that you are getting, it sounds like you are talking to a server.

Do you have the right host name (IP address) and port specified for connecting to the "web" port of NowSMS (same IP address and port as the web interface)?

Try putting NowSMS into debug mode by manually editing SMSGW.INI, and adding Debug=Yes under the [SMSGW] section header. Then restart the NowSMS service.

Attempt the Java servlet again ... does anything appear in the SMSDEBUG.LOG? If so, that might tell us something ...

-bn
Marcelo Muzilli
New member
Username: Muzilli

Post Number: 6
Registered: 03-2004
Posted on Thursday, March 11, 2004 - 08:31 pm:   

Hy Bryce,
I did the code, but when I try to run it returns the following error message: "Invalid username and password, or your web browser does not support authentication.".
The question is: where I put the name and password to authenticate in my server (the NowSMS server)?

Example in PHP to authenticate:
SendSMS("200.233.96.200", 8800, "user", "passwd", $celular, "SMS Test");

Regards,

Marcelo Muzilli
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2120
Registered: 10-2002
Posted on Tuesday, March 16, 2004 - 03:50 pm:   

Marcelo,

Apologies for the delay in this reply.

The user account is defined in the "SMS Users" dialog.

-bn