SMS Gateway setting

How to setup any gateway with the smshare module for Opencart


Posted on June 16, 2015

Update on October 24, 2021

Tags: Opencart

Introduction

In this quick post we will see how to setup any gateway with the smshare module for Opencart. Smshare modules for Opencart are available on the smshare official store for both Opencart 1 and Opencart 2

Theoretical case

Every SMS gateway out there will provide you with an API to send SMS programmatically. They often provide you with a GET URL or in some case with a POST endpoint.

The GET URL provided looks like the following:

http://www.sms-gateway.com/send-sms?num=12345679&msg=hello&param1=xyz&param2=abc&...

URL part Name Description Optional?
http://www.sms-gateway.com/send-sms The API Gateway URL Enter the gateway URL in the API URL field in smshare module configuration. Required
num The destination field This is the name of the variable that represents the destination numbers. Required
msg The message field This is the name of the variable that reprensents the message. Required
param1, param2, etc Additional fields These are additional parameters that may be required by your gateway. Optional

Here is a screenshot of how you enter these values in smshare module configuration.

Gateway configuration example

Some example

Here below screenshots of some working gateways configurations.

ClickSend.com

Register for a ClickSend account here: ClickSend.com Gateway configuration example

Malath

Malath gateway is a SMS gateway from Saudi Arabia, created in 2008. They have more than 200,000 users. Malath is known to perform well in Saudi Arabia and all other Gulf countries thanks to their direct connections.
They have good rates too. Register now!

malath Gateway configuration example

Here are the configuration values for malath gateway as shown in the screenshot above for easy copy/paste

Name Value Note
The API URL http://sms.malath.net.sa/httpSmsProvider.aspx
The destination field mobile
The message field message
username Your malath username Additional field
password Your malath password Additional field
sender Your senderID Additional field
unicode U Additional field

Documentation (PDF)

safa-sms

safa-sms gateway is a SMS gateway that is known to perform well in Saudi Arabia and all other Gulf countries thanks to their direct connections.
They have good rates too. Register now!

safa-sms Gateway configuration example

Here are the configuration values for safa-sms gateway as shown in the screenshot above for easy copy/paste

Name Value Note
The API URL http://www.safa-sms.com/api/sendsms.php
The destination field numbers
The message field message
username Your safa-sms username Additional field
password Your safa-sms password Additional field
sender Your senderID Additional field

Documentation (PDF)

Liveall

liveall.eu is a Greek SMS gateway.

Gateway configuration example

Here are the configuration values shown in the screenshot above, for liveall for easy copy/paste

Name Value Note
The API URL https://sms.liveall.eu/apiext/Sendout/SendSMS
The destination field destination
The message field message
apitoken Your liveall API token Additional field
senderid Your senderID Additional field

Mobily.ws

Gateway configuration example

Here are the configuration values shown in the screenshot above, for mobily.ws for easy copy/paste

Name Value Note
The API URL http://www.mobily.ws/api/msgSend.php
The destination field numbers
The message field msg Check the "unicode the message" setting. This gateway requires the message body to be converted to Unicode
mobile Your mobile number used when you registered with mobily.ws Additional field
password Your password used when you registered with mobily.ws Additional field
sender Your senderID you registered with mobily.ws Additional field
applicationType 24 Additional field

mobile.net.sa

Gateway configuration example

Here are the configuration values shown in the screenshot above, for mobile.net.sa for easy copy/paste

Name Value Note
The API URL https://mobile.net.sa/sms/gw
The destination field numbers
The message field msg
userName Your mobile.net.sa username Additional field
userPassword Your mobile.net.sa password Additional field
userSender Your senderID Additional field
By standard Additional field

mobishastra.com

Gateway configuration example

Here are the configuration values shown in the screenshot above, for mobishastra for easy copy/paste.

Name Value Note
The API URL https://mshastra.com/sendurlcomma.aspx
The destination field mobileno
The message field msgtext
user Your mobishastra username Additional field
pwd Your mobishastra password Additional field
senderid Your sender ID Additional field
priority High Additional field
CountryCode ALL Additional field

Documentation (PDF)

Msegat

MSEGAT SMS gateway setup with smshare - Gateway configuration example

Here are the configuration values shown in the screenshot above, for Msegat for easy copy/paste

Name Value Note
The API URL https://www.msegat.com/gw/sendsms.php
The destination field numbers
The message field msg
userName Your msegat username Additional field
apiKey required, string, apiKey associated with the account Additional field
userSender required, string, sender name, should be activated from Msegat.com Additional field
msgEncoding required, string, UTF8 or windows-1256 Additional field

MSG91

msg91.com is an Indian gateway

Gateway configuration example

Here are the configuration values shown in the screenshot above, for MSG91 for easy copy/paste

Name Value Note
The API URL https://control.msg91.com/api/sendhttp.php
The destination field mobiles
The message field message
route 4 Additional field
authkey Your API authkey Additional field
sender Your senderID Additional field

mvaayoo

Gateway configuration example

Here are the configuration values shown in the screenshot above, for mVaayoo for easy copy/paste

Name Value Note
The API URL http://api.mVaayoo.com/mvaayooapi/MessageCompose
The destination field receipientno Note that they made a spelling mistake (recipient is correct) but you must stick with receipientno
The message field msgtxt
user the value looks like: username@example.com:123456 Additional field
senderID Your mvaayoo sender id Additional field

NetGSM

NetGSM is an Turkish SMS gateway.

NetGSM SMS gateway setup with smshare - Gateway configuration example

Here are the configuration values shown in the screenshot above, for NetGSM for easy copy/paste

Name Value Note
The API URL https://api.netgsm.com.tr/sms/send/otp
The destination field no
The message field msg
usercode Your NetGSM username Additional field
password Your NetGSM password Additional field
msgheader Your NetGSM sender ID Additional field

Documentation

oursms.net

Oursms.net Gateway configuration example

Here are the configuration values for oursms.net gateway as shown in the screenshot above for easy copy/paste

Name Value Note
The API URL http://www.oursms.net/api/sendsms.php
The destination field numbers
The message field message
username Your oursms username Additional field
password Your oursms password Additional field
sender Your senderID Additional field
unicode E Additional field

smsexperience.com

smsexperience.com is a Nigerian SMS gateway.

Gateway configuration example

Here are the configuration values shown in the screenshot above, for smsexperience for easy copy/paste

Name Value Note
The API URL http://smsexperience.com/components/com_spc/smsapi.php
The destination field recipient
The message field message
username Your smsexperience username Additional field
password Your smsexperience password Additional field
sender Your sender ID Additional field

SMSViro

SMSViro is an Indonesian SMS gateway. It requires HTTP basic auth. For Opencart users, your need the smshare Basic Auth extension (advanced feature)

SMSVIRO SMS gateway setup with smshare - Gateway configuration example

Here are the configuration values shown in the screenshot above, for SMSViro for easy copy/paste

Name Value Note
The API URL https://api.smsviro.com/restapi/sms/1/text/single
The destination field to
The message field text
from Your smsviro sender ID Additional field

Documentation (PDF)

iSmartsms

www.ismartsms.net is a Middle east SMS gateway.

Gateway configuration example

Here are the configuration values shown in the screenshot above, for ismartsms for easy copy/paste

Name Value Note
The API URL https://www.ismartsms.net/iBulkSMS/HttpWS/SMSDynamicAPI.aspx
The destination field MobileNo
The message field Message
UserId Your ismartsms user id Additional field
Password Your ismartsms password Additional field
Lang 0 for english, 64 for arabic Additional field

bulksmsgateway.in

bulksmsgateway.in is an Indian SMS gateway.

Gateway configuration example

Here are the configuration values shown in the screenshot above, for bulksmsgateway for easy copy/paste. For more info checkout their documentation

Name Value Note
The API URL https://www.bulksmsgateway.in/sendmessage.php
The destination field mobile
The message field message
user Your bulksmsgateway username Additional field
password Your bulksmsgateway password Additional field
sender Your sender ID Additional field
type 3 Additional field

redsms.in

Gateway configuration example

46elfks

Gateway configuration example

alertsms.ro

A Romanian gateway provider

Gateway configuration example

thaibulksms.com

A thai gateway provider

Gateway configuration example

sms99.co.in

A thai gateway provider

Gateway configuration example

sms.net.gr

A Greek gateway provider

Gateway configuration example

bulksms2u.com

A Malaysian gateway provider

Gateway configuration example

Documentation (PDF)

Yamamah

yamamah.com is a Saudi Arabian SMS gateway.

Gateway configuration example

Here are the configuration values shown in the screenshot above, for yamamah for easy copy/paste

Name Value Note
The API URL http://api.yamamah.com/SendSMSV2
The destination field RecepientNumber
The message field Message
Username Your yamamah username Additional field
Password Your yamamah password Additional field
Tagname Your senderID Additional field
EnableDR true Additional field: enabled delivery report
SendDateTime 0 Additional field: required
VariableList Additional field: required, leave it empty

Documentation PDF

Conclusion

In this post we saw how to setup any gateway with the smshare module for opencart. If you have questions you can ask them in the comment section below or contact us.


comments powered by Disqus