softon / sms

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.5).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.
http://softon.github.io/sms/
MIT License
45 stars 27 forks source link

Not able to send SMS via custom gateway #12

Closed clickervinod closed 5 years ago

clickervinod commented 6 years ago

This is my code and configuration, im not able to send SMS via custom gateway. where i am wrong. "softon/sms": "2.0.2",

config/sms.php

'bhas' => [ // Can be used for any gateway 'url' => 'http://mysms.clickerstudio.in/api/sendmsg.php?', // Gateway Endpoint 'params' => [ // Parameters to be included in the request 'send_to_name' => 'mobile', // Name of the field of recipient number 'msg_name' => 'message', // Name of the field of Message Text 'others' => [ // Other Authentication params with their values 'user' => 'myusername', 'pass' => 'dsjofkjh', 'sender' => 'TECARE', 'priority' => 'ndnd', 'stype' => 'normal', ], ], 'add_code' => false, // Append country code to the mobile numbers ],

softon commented 5 years ago

sorry for the late reply. that is not how u use it. you have to replace the variables name with your own for like send_to_name,msg_name etc. if the problem is still not resolved pls post the actual config and the calling function used. thank you.

clickervinod commented 5 years ago

Hi, Thanks for reply i have fixed the issue there was a problem of different key name mobile - phone in config file