PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, November 19, 2022

[FIXED] How to include a link in Twilio message in PHP?

 November 19, 2022     php, twilio-php     No comments   

Issue

I am working with Twilio API, where I have to send SMS to the registered users.
The problem is I want to include anchor links in the message, for example:

How to make 'Stack Overflow' a link to redirect to http://stackoverflow.com/?

However, it doesn't accept anchor tags.


Solution

Links cannot be embedded into an SMS message.

SMS messages are plain text - it's up to the handset to convert the link to a clickable object for the user.

Most modern smartphones will convert a link to a clickable object provided it starts with http or https and has a tld.

http://clickme.tld for instance would work.

Screenshot of clickable link within an SMS

I sent myself a message

Sample link http://stackoverflow.com

and my handset converted it to a link.



Answered By - sketchthat
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing