Sending SMS using php | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ |
◄ ► |
Author | Message | |||
Zahoor Ahmed New member Username: Zahoor Post Number: 24 Registered: 04-2011 |
Hi I want to send SMS using php script hosted on local server. Is there any possiblty I may send SMS via Now SMS and Android app? If yes, kindly provide me script. This does not work in my case https://nowsms.com/nowsms-php-example-send-sms-text-message | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8468 Registered: 10-2002 |
Hi, The question would be ... why doesn't that script work? I assume that the PHP script reports an error ... what is that error? Or is there no error, but the message is not sent? I assume you can send an SMS message using the NowSMS web interface? Did you change the URL to point to your local server? SendSMS('https://sample.smshosts.com/', 'username', 'password', '+44999999999', 'Test Message'); If the NowSMS web interface is listening on port 8800, instead of 'https://sample.smshosts.com', you would use 'http://127.0.0.1:8800' ... 127.0.0.1 is a loopback interface for the local server, you could also use the actual IP address instead of 127.0.0.1. You need to have a user account defined in NowSMS under "SMS Users". Replace 'username' and 'password' with the credentials for this user account. |