doulangbizhan5160
doulangbizhan5160
采纳率100%
2017-09-27 18:08

PHP:如何在短信中显示完整的超链接

已采纳

I am sending sms to mobile using twilio sms service in PHP http://s.test.com?v=ccc but in sms it only show http://s.test.com as a hypelink missing ?v=ccc part . how can I make it show this whole http://s.test.com?v=ccc as a hyperlink in sms ?

This is the code I am using to send sms :

function sendText($number, $id, $product_domain)
{
  $short_url = 'http://s.'. $product_domain .'.com?v='.$this->toBase($id);

  $client = new Services_Twilio(TWILIOSID, TWILIOTOKEN);
  $client->account->messages->sendMessage("123-4567-9870", $number,
"Your Scope is complete ".$short_url."  Customer Service  877.697.2673 . To disable this service reply with \"stop\"");
 }

This $short_url will be generated as http://s.test.com?v=ccc

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • doujiabing1228 doujiabing1228 4年前

    Changing http://s.test.com?v=ccc to http://s.test.com/?v=ccc fixed the issue for me.

    点赞 评论 复制链接分享

相关推荐