Could we change subject of SMS in PHP Twilio Api - php

I have implemented twilio Api in PHP and its working fine.
But i am getting SMS on phone with Subject DM-012362.
For Example:
DM-012362
My message....
Could i change DM-012362 to DM-ABCD
Please suggest.

You need to get the Permission From twillio and give him a Sender id DM-ABCD after the approval this is change

Related

SMS from website using my credit

I want to send sms from my website using php and html but I just found that to do this I need to pay a gateway and then add it to my website.
I want to use the credit of my android phone, do you know how to send sms using my credit?
I will give you a beer by paypal if you help me.
Forgot to say that php mail function doesn't works because in my country is not supported to send a SMS by email :(
You can try using Nexmo. you won't send sms using your phone credit but you'll use your account credit that you can top up with paypal and other methods and you will just have to call their restful API to send sms directly from one php code line (file_get_contents), no gateways...

Not getting push notification from GCM after sending few notifications

I want push notification by using GCM, all things are done properly, like API key & others.
I got success & also received notification, but after sending few notifications now i'm not getting any notification & getting following erro
{"multicast_id":7413445345804388431,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}
please help for this, Thanx in advance
error":"MismatchSenderId it says that your sending push notifications from another sender id, not from your registered send id. please check your sender id properly.
Double check the Sender ID and APK_KEY, they must match or else you will get that MismatchSenderId error. In the Google API Console, look at the URL of your project:
Refer this link https://stackoverflow.com/a/11316399/964741

SMS Forwarding with Twilio

I've been trying to build an app that forwards an sms to a URL
with twilio, i.e, a user sends an sms to a twilio number, the sms gets forwarded to a specified url, can't seems to find the resource on that, any experienced person in that area
to give a hint, plus what is the format of the sms forwarded to the url.
Thanks
Twilio evangelist here.
I'd suggest working through the SMS and MMS Messages Quickstart. It will walk you through the PHP needed to receive a text message:
https://www.twilio.com/docs/quickstart/php/sms
Hope that helps.
At last, I was able to find what I was looking for. Phew!
$_REQUEST['Body'] retrieves the body of the sms message and I can do whatever I like with that.
Twilio rocks!

Twilio sms gateway Change sender id as text

I am tring to use Twilio SMS gateway to send SMS to clients.Twilio API works good for me but i got struk in setting sender id.
Is there any possibities to set the sender ID as text ie., our business name (ex., Mycompany - i need to receive sms with this name)?
Twilio evangelist here.
The short answer is that today we only allow you to use a Twilio phone number as the caller ID when sending text messages from Twilio. You can read more about setting the caller ID for outgoing SMS messages here.
Hope that helps.

How to receive SMS to a twilio number

I have created a free account in twilio for sending SMS through my website. After my registration I got a twilio number like XXX-XXX-XXXX. I am able to send message to mobile numbers but I don't know how to use this twilio number for receiving SMS. Please help me out on this.
Twilio evangelist here.
The way Twilio notifies you of both incoming SMS message and incoming voice phone calls is by using something called a webhook. This is basically an HTTP request that Twilio makes to a URL that you tell us about. Normally this URL is a web app that you've created and published to a public website.
http://en.wikipedia.org/wiki/Webhook
In your Twilio dashboard, click on the Numbers tab and you will see your trial number.
https://www.twilio.com/user/account/phone-numbers/incoming
Click the phone number and you will see two input fields, one for a Voice URL and one for a SMS url. Just put your URL's there and click the save button.
Now if you send a text message to your number, Twilio will make an HTTP request to the URL you've told us about. You can think of this like a standard Form submit. Twilio will send along parameters like the number the SMS is coming from and the body of the message. The full list of parameters we send to the SMS url is here:
https://www.twilio.com/docs/api/twiml/sms/twilio_request
Your app can grab those parameters and use them however it wants. Your app can also return TwiML instructions to us that tell us to respond to the SMS.
https://www.twilio.com/docs/api/twiml/sms/your_response
You might want to check out our quickstarts for examples of how to receive a text message and and howtos for lots more examples of both sending and receiving SMS messages.
https://www.twilio.com/docs/quickstart/php/sms/hello-monkey
https://www.twilio.com/docs/howto
Hope that helps.
Devin

Categories