PHP

Selecting MMS Route when sending MMS

When submitting an MMS message, it is frequently desirable to direct the message to a specific connection. The method for doing this varies depending on the protocol being used to submit the MMS message. HTTP URL or POST Submission If you are submitting via HTTP (https://nowsms.com/doc/submitting-mms-messages/now-smsmms-proprietary-url-su bmission), you can specify an MMSCRoute=xxxx parameter,...

Read More

Send MMS Message from PHP Script

Note: For additional APIs for sending and receiving SMS and MMS messages, please see our Developer APIs for SMS + MMS page. Back in 2003, we posted an example PHP script for sending MMS via NowSMS on our discussion board at https://nowsms.com/discus/messages/1/1113.html. While this script has worked well over the years, it has a serious limitation in that it does not support SSL/TLS. Version 2...

Read More

Send SMS from PHP Script

Note: For additional APIs for sending and receiving SMS and MMS messages, please see our Developer APIs for SMS + MMS page. Back in 2003, we posted an example PHP script for sending SMS via NowSMS on our discussion board at https://nowsms.com/discus/messages/1/867.html. While this script has worked well over the years, it has a serious limitation in that it does not support SSL/TLS. Version 2 of...

Read More

2-Way Commands for SMS and MMS Processing (New 2014 Features)

The 2-Way command feature in NowSMS can be used to build automated SMS and MMS applications.  When an SMS or MMS message is received, NowSMS will evaluate the content of the message, and can either execute a program, or connect to an HTTP URL, based upon the content of the message. The program or script can perform actions based upon the message content, and optionally return a reply. For the...

Read More

NowSMS Status Query with PHP

Previous articles have described the XML-based status query interface that can be used to programmatically retrieve information about the current status of NowSMS. The XML-based status query interface that reports information similar to what is reported on the “Status” page of the NowSMS configuration dialog. The query results include information about SMSC connection status, the number of...

Read More

SMS Distribution Lists with PHP

An earlier post described the HTTP URL formats for working with NowSMS distribution lists. This post provides some example PHP functions that can be used to simplify this process.  Now that NowSMS can support PHP scripts natively without a separate web server, it is even easier to prototype SMS applications with NowSMS. In this example, we’ll use these example PHP functions to allow users...

Read More

Using PHP Scripts to Extend NowSMS

PHP scripts are a great tool for integrating NowSMS into another application environment, or extending the functionality of NowSMS. PHP scripts are often used for 2-way SMS or MMS processing, providing a convenient mechanism for processing the received message content in an application, and optionally replying back to the received message, updating or querying a database, or taking other action...

Read More

Send SMS from PHP Script (Updated)

Quite a few people use the PHP script that Bryce provided 7-1/2 years ago for sending an SMS message through NowSMS from PHP. Over the years, we’ve added a few comments to clarify how the script is to be used.  However, one of the most limiting things about the script is that it doesn’t support any of the additional SMS URL parameters supported by NowSMS. Among other uses, these...

Read More

Send OMA Client Provisioning (OTA XML) via PHP

OMA Provisioing Content Messages are special SMS messages that contain information used to configure certain settings of a mobile phone, such as settings for the browser (APN, proxy, bookmarks), MMS client, IM client, or SyncML client. These messages are sometimes referred to as OTA configuration messages, where OTA is an acronym for Over-The-Air. These settings are specified in an XML format,...

Read More

2-way SMS: Multiple operators with the same shortcode

This configuration issue comes up quite a bit. Let’s say that you are connecting directly to multiple mobile operators, and your service is using the same short code on each operator. When customers send a message in to your short code, you want to make sure that the reply is sent back via the same mobile operator as which the message was received. Additionally, if that message from the...

Read More

Receiving MMS Messages with a PHP Script: HTTP File Upload Post

Note:  The PHP script referenced in this section can be downloaded at the following link:  https://nowsms.com/download/php2waymms.zip NowSMS is a popular tool for enabling rapid development of interactive SMS applications and services. Within the NowSMS product, we refer to this as 2-way SMS. Through the 2-way SMS facility, when NowSMS receives an SMS message, it can be configured to dispatch...

Read More