php - How to preserve a hyperlink on Android SMS message -


i sending sms message android phone using twilio.

the domain has hypen in it. e.g. http://my-domain.com

when sms message arrives on android, initial portion of text included in hyperlink.

so in above example hyperlink "http://my"

how possible escape hyperlink being send android? using php twilio client.

it might done small mistake. and, not depend on android or ios. tried , worked not specific android or ios.

    <?php          require '../services/twilio.php'; // include twilio php library          $version = "2010-04-01"; // twilio rest api version          // set our account sid , authtoken         $sid = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy';         $token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';           $client = new services_twilio($sid, $token, $version); //initialise twilio client         $message = 'http://my-domain.com';         try {             // initiate new outbound call             $call = $client->account->messages->create(array(      'to' => "+yyyyyyyyyy",      'from' => "+1xxxxxxxxxx",      'body' => $message,    ));             echo 'twilio sms';             echo 'sending.... ';         } catch (exception $e) {             echo 'error: ' . $e->getmessage();         }     ?> 

here, code. getting url same in sms twilio.

you please check code once. and, hope code you.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -