PHP

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

Send MMS Message from PHP Script

Continuing our series of PHP examples, today we’ll revisit sendmms.php, which we originally published on our discussion board 5 years ago at http://www.nowsms.com/discus/messages/1/1113.html. The sendmms.php script is considerably more complex than the sendsms.php script. The reason for this increased complexity is because an MMS message is more complex than an SMS message. However, I have...

Read More

Send SMS from PHP Script

Over the coming weeks, I’m planning to collect various PHP, ASP and other script examples to provide some examples of how to interface with NowSMS from those environments. The following links should provide all of the relevant postings, assuming that I follow-up with this task as planned. PHP Examples — http://www.nowsms.com/tag/php ASP Examples —...

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:  http://www.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...

Read More