Drupal SMS

Categories

Component ID

2722425

Component name

Drupal SMS

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is a module to allow a drupal 7 site to Send and receive SMS messages from phone numbers internationally using the Nexmo service.
nexmo.com/

After you install the module navigate to admin/config/nexmo/configuration and set up your Nexmo API key and API secret then click save.

This module is adaptable when you need it for instance, if you would like your site to accept an incoming text and respond with data you would use the inbound_sms() function which you can find in the inbound_sms.inc file. Right now it will only respond to a SMS message containing the word "ok".

In order to send a SMS message from your site programmatically you would use the nexmo_sms_send() function from the Send-sms.inc file.

Send SMS example:

 module_load_include('inc', 'Nexmo SMS', 'Send-sms');
					$f = '###';  //  Your US or International Nexmo phone number
					$t = '###';   // The phone number you want to send a message to 		
					$m = 'This+is+my+message'; 	//The message you want to send using URL encoding
			      
                             nexmo_sms_send($f,$m,$t); //This function will send the message using nexmo to its destination.