How to send SMS text messages to contact groups

On this page you will find solutions on how to send SMS text messages to contact groups using the various sending methods with Ozeki NG SMS Gateway.

For demonstration I have created a contact group called testgrp in Ozeki NG SMS Gateway (Figure 1).

creating content group
Figure 1 - Create contact group

I have created three contacts in the created group (testcontact1, testcontact2, contact 3) (Figure 2).

creating contacts
Figure 2 - Create contacts

Built-in SMTP server

If you want to send messages to the built-in SMTP server you need to specify the recipient in the following form:
grp__groupname@domainname (Please note that there are two underscores after grp keyword in the recipient!)

In this example: grp__testgrp@test.com

sending a messages using an smtp server
Figure 3 - SMS message to a built-in SMTP server

On Figure 4 you can see that Ozeki NG SMS Gateway has sent out the messages to the contacts of the contact group.

sent messages using an smtp server
Figure 4 - Sent messages in Ozeki NG SMS Gateway

Web GUI

To send SMS messages from web GUI, you need to specify the recipient as grp://groupname (Figure 5).
In this example it is grp://testgrp.

sending sms with web gui
Figure 5 - SMS message to web GUI

On Figure 6 you can see that the message has been sent to the contact group.

sent messages from a web gui
Figure 6 - Sent message in Ozeki NG SMS Gateway

Excel client

In Excel you need to define the recipient in column A as grp://groupname (Figure 7).

sending messages from an excel client
Figure 7 - Send message with Excel

On Figure 8 you can see that Ozeki NG SMS Gateway has sent out the message to the contact group.

sent messages from an excel client
Figure 8 - Sent message in Ozeki NG SMS Gateway

Database user

In database user you need to specify the recipient in the following form: grp://groupname in the receiver field (Figure 9).

sending a message using a database
Figure 9 - Send message with database user

On Figure 10 you can see that Ozeki NG SMS Gateway has sent out the message to the contacts.

sent messages using a database
Figure 10 - Sent message in Ozeki NG SMS Gateway

HTTP API

To send SMS message from HTTP API to contact groups you need to enter the recipient after recipient= section of the script.

 
http://127.0.0.1:9501/api?action=sendmessage&username=admin&password=abc123&recipient=grp://testgrp&messagetype=SMS:TEXT&messagedata=Hello+World
recipient=grp://testgrp

On Figure 11 you can see the sent message from HTTP API.

sent messages using a http api
Figure 11 - Sent message in Ozeki NG SMS Gateway

More information