2-way sms | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 15, 2006 ⬆ |
◄ ► |
Author | Message | |||
Nikki Mann New member Username: Nsm Post Number: 1 Registered: 07-2006 |
Hi, I'm trying to get the server to respond to an SMS text msg with an MMS. When a user sends an SMS to the phone containing a word I want it to send back an MMS response depending on the word How would I go about this?? (i've already got it working to send back an sms depending on the word) | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6231 Registered: 10-2002 |
Hi Nikki, It is more complicated to reply back with an MMS message, because an MMS message itself can be more complex. The basic idea of how you accomplish this is that you need to issue a new HTTP request to the NowSMS server to send an MMS message. See the following link for an example of how you can send an MMS message via NowSMS with a URL: http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Submitting_MMS_Messages_URL.htm Most of that link talks about using HTTP POST, but there is an HTTP GET example toward the end of the page. Using a URL link is tough if you are dynamically generating your content. In this case, you need to publish the content so that NowSMS can retrieve it from a separate web server. (This is because there is no way to pass image content via a simple URL request ... you can only pass NowSMS a URL from which it can retrieve the image.) Your 2-way script can either generate a new HTTP request to NowSMS to send the MMS. Or, it can return a redirect response back to NowSMS. See the following for an explanation of this redirect response technique: http://www.nowsms.com/support/bulletins/tb-nowsms-003.htm What scripting language are you using? I might be able to point you to an example out here that shows a redirect response, or shows how to initiate a new HTTP request. -bn |