sms_message
In Drupal, you have a customer list and need to send mass SMS to your customers. This module allows you to do so using your Android phone. It enables bulk SMS functionality integrated with Drupal.
How It Works:
- Install the Module: Once the module is installed, you will have an interface to manage sent SMS messages( /admin/content/sms-message). The module provides a unique token for integration.
- Set Up the Android App: Download and install the app send sms (apk - 6M) (APK size: 6MB) on your Android phone. (Mediafire link download)
- Grant Permissions: After installation, test the app by sending an SMS. When prompted, grant the necessary permissions to send SMS.
- Connect the App with Drupal: Add the SMS endpoint from the Drupal module to the app (You can set token if you want in configuration / Sms setting).
- Click the "On Service" button in the app.
Functionality:
The app will query the Drupal module's API every 2 minutes by default (you can customize this interval, e.g., 30 seconds by setting it to 0.5 minutes).
If there are unsent SMS messages in the Drupal system, they will be downloaded and sent via your phone's SMS service.
Optionally, you can set the endpoint with the ?action=delete parameter to download all messages at once and delete them from the server. For example:
https://yoursite.com/api/sms/012345TOKEN?action=delete
This setup simplifies sending bulk SMS directly from Drupal through your Android device, providing a seamless integration for managing customer communications.
How to use
This module will create entity sms content on drupal.
You can create SMS via /admin/content/sms-message
or entityTypeManager programmatically
$sms = \Drupal::entityTypeManager()->getStorage('sms_message')->create([
'type' => 'sms_message',
'number' => $phoneNumber,
'message' => [
'value' => $message,
],
'uid' => $user_id,
]);
$sms->save();
Go to module configuration, you will set token for url endpoint for add to your android phone https://yoursite.com/api/sms/YOURTOKEN
You can build your app by yourself with Android Studio, source code in sms-android folder, you will get native android app,
To send bulk sms to your customer base. you need to create customer content type with phone field as required. You will need a taxonomy that contains the sms template.
You just create a VBO views with customer content type and then enable VBO "sms message". Select phone field in config and vocabulary term. when sending bulk message, It will ask to provide sms template you can select your sms term from taxonomy
Do you like this module? Show your appreciation by buying me ☕.