Using Twilio how test Sms Sending from php on US number? - twilio

I want to implement an SMS messaging system (using Twilio account) on my PHP web application using a US Number. So how can I test using a US number?

Twilio developer evangelist here.
You have a few options:
Firstly, Twilio numbers, particularly US numbers, are available internationally. So you can test this with your local number, wherever you are.
Alternatively, you could buy a US phone and test with that.
Or, with a bit more work, you could buy a second US Twilio number and build a small app for sending and receiving SMS messages with it and use that number to interact with your first Twilio number.
Let me know if this helps at all!

Related

Twilio SMS to Multiple Countries

So I'm using Zapier to send text messages to people added to a MailChimp mailing list. A lot of the subscribers are from other countries so I'm just wondering how the interaction works with Twilio.
Will I need a separate number for each country?
Twilio developer evangelist here.
You don't necessarily need another number, Twilio numbers can send internationally (mostly, check the individual settings on the number to be sure, UK landline numbers, for example, can't send internationally).
However, receiving a message from an international number may not be a good experience for your users as they might expect a local number. Good news is that it is easy to build this.
You can create yourself an SMS messaging service. Messaging services are a combination of a number pool along with smart uses of the number pool. You can start your messaging service with one number and add others later. When you add more than one number the messaging service will geomatch between the people you are sending to and the numbers available in the pool, picking the best number for the user.
I'm not entirely sure how this works with Zapier, whether you can set a messaging service ID for your Zap. If that's not possible, you could use Zapier to send a webhook to something like a Twilio Function which you could set up to send the message.
Let me know if that helps at all.

How to test international numbers between Twilio and a service like TextMagic

I'm trying to set up our app to send SMS with Twilio. The person who does a lot of our testing lives overseas, so I need to obtain a US phone number that she can use so she can do her testing. I got a number via TextMagic, but when I try to add it to the list of verified numbers on my Twilio dashboard, the verification code (seemingly) never gets sent to the TextMagic number. Is there some sort of restriction on Twilio's side regarding numbers generated from services like TextMagic? Any info would be greatly appreciated!
Twilio developer evangelist here.
I'm not aware of anything that would necessarily restrict things between Twilio and TextMagic.
Can I suggest using another Twilio number to test things? It does work to send between Twilio numbers and you'll need the same knowledge to setup the Twilio number as to use it as a test number.

Send mass texts with iOS

Is there anyway to send the same text to multiple contacts not as a group text. I have been told that it would need a server to accomplish this. If that is the case I would like to be able to still send texts from my current number not a new number. I have checked out Twilio but have not gotten very far.
Twilio developer evangelist here.
You cannot send mass text messages using Twilio and your existing phone number.
One option you might have is, if you have a Mac you can control the SMS app programmatically to send lots of SMS messages. Here's a blog post with some example code to do that: https://www.twilio.com/blog/2017/06/drawing-pixel-art-text-messages-signal-video-wall.html
That might not be of much help, but while you can send lots of SMS messages with Twilio, you cannot do so using your existing number.
Yes you could send mass texts out to different numbers using twilio. No you could not use your current number.
You would have to purchase a new twilio number that has SMS messaging enabled.
Look at the Twilio documentation and their get started guide, figure out the language you want to create your server in and you will be sending texts in no time. https://www.twilio.com/docs/quickstart/node/programmable-sms You would run the webserver. Twilio does not offer a swift or ios based SMS solution.
https://www.twilio.com/docs/quickstart?filter-language=swift

Facing issue while sending SMS with Twilio Copilot

I am trying to work on Twilio Copilot. I have created the SID.I have also assigned a UK number .I need to send messages to UK, US and South africa for now.
I am currently facing problem is sending messages to US. Do i need to assign a seperate US number for it to work (Same for Other Countries)?
I am using C# Twilio 4.7.2 library.
Twilio developer evangelist here.
My guess is that you have a UK landline number. That is a number that currently supports voice and messaging and starts +441, +442 or +443.
UK landline numbers cannot currently send international SMS.
If you still want to use a UK number to send international messages, you can get a UK mobile number, which will start +447, though currently these numbers do not support incoming voice calls.
Best practice for sending international messages is to try to use a local number to send them. When you are using Copilot it will automatically geomatch the best number to the location you are sending to.

What can we do with Twilio api in iOS?

I want to integrate Twilio in my iOS app. I read Twilio documentation but I am getting confused on some points. I have few questions:
Q 1) Can Twilio number receive messages from Mobile numbers (non twilio numbers)? Is it possible on trial Twilio number?
I am trying to send SMS from Twilio verified Indian number(e.g.+919435XXXXXX) to my trial Twilio number. My message was not delivered to trial Twilio number. While I am able to send SMS form trial Twilio no. to my mobile number. Is reason is trial account or anything else?
Q 2) Can we get two trial Twilio numbers for single account?
Q 3) How can send message using “Application url: https://hardw.herokuapp.com/"?
This url got when we created app using following way https://www.twilio.com/docs/quickstart/php/ios-client/setup
I have trial account. I am able to call using this app url with the help of BasicPhone app. Now I want to send SMS using app url.
Currently I am sending sms as described here Case 1: This is my native objective-c working code..
Please help me.Thanks...
Twilio Developer Evangelist here.
I'll try to answer your questions below:
Yes, a Twilio number is a number like any other, so you can send and receive SMS messages from any other number as well as making telephone calls. However, because you mentioned you're in India, it's worth reading about the limitations in India.
No, you can only have one number under a trial account, so in order to get more numbers you will need to upgrade your account, and put at least enough money to allow you to purchase a second number.
If all you want is to send SMS messages, all you need to have is a backend application that you can invoke via an HTTP request. That application will then make an API request to Twilio and send the SMS message. An example of how to send an SMS message can be found here.
Let me know if you have any other questions.

Resources