Adding an active URL Link within Text Editor

Hello,

A developer has created a PHP site which sends an automatically generated email to a nominated user. This email contains a link. I notice that in Gmail this link is active and clickable - however in Yahoo mail, this link is inactive and is just text (confirmed by other users).

Below is the code used:

{P}To login and complete your assessment, please click on this link {A}http://www.mysite.com/here{AEND} and then enter your password {TOKENID}.{PEND}

Open in new window


Is there a way to edit this code to ensure the url shown is 'active' (clickable) when it hits all email providers?

Thanks
LVL 1
dabug80Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Ray PaseurConnect With a Mentor Commented:
There are several layers of things going on here.  Let me tell you what I have experienced with things like this.

1. There is no accountability in email.  Every part of the headers and the message can be bogus.  You have no control over what the client email reader does with your message.   You cannot control the rendering of your message, nor know whether it has been read with more than a very little certainty.

2. There are many, many email reader programs.  They work differently.  They render identical data differently.  Some of them will render anything that looks like a link in the form of a link.

3. Some people perceive that hyperlinks in email represent a security exposure.  It might make sense that Yahoo would look down upon links because anybody still using Yahoo email probably started many years ago and may be an older and unsophisticated user, the gullible kind that would click the "get rich quick" link and get taken to an attack site.  (Don't laugh - I have clients who believe everything on the internet)

4. There are basically two types of email messages - plain text and HTML.  If you want to send plain text it's pretty easy - you just send a text string in the body of the message.  If you want to send HTML (which may give you a better chance of getting your links to be clickable) you can follow the guidelines here (Example #4):
http://php.net/manual/en/function.mail.php

5. If you want to simplify your life, consider using a service like ConstantContact.
0
 
Dan CraciunIT ConsultantCommented:
Try to see if regular HTML code works:
<p>To login and complete your assessment, please click on this link <a href="http://www.mysite.com/here">http://www.mysite.com/here</a> and then enter your password {TOKENID}.</p>

Open in new window


If not, we're going to need the code, cause something should replace {A} and {AEND} with html code and apparently it's not doing so.

HTH,
Dan
0
 
dabug80Author Commented:
Thanks for the suggestion, but it didn't work. I found this discussion on links not working in Yahoo mail. Perhaps it's a Yahoo thing.
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
Dan CraciunIT ConsultantCommented:
Gmail and most email clients will take anything that resembles an URL and transform it into a clickable link.
Yahoo decided not to.

Try to see the source of the message as it was received (in gmail, yahoo, does not matter) and see if the URL has standard <a> tags surrounding it.
0
 
dabug80Author Commented:
I've viewed the Yahoo page source and it's showing:

<\/p>\\n\\nTo login and complete your assessment, please click on this link http:\/\/www.mysite.com\/here and then enter your password

Open in new window


So it doesn't look like Yahoo likes to code links
0
 
Dan CraciunIT ConsultantCommented:
It's not Yahoo's job to code links, it's yours. Just because gmail helps you when you forget, does not mean Yahoo is forced to do the same.

You need to send standard html code, so review the generator (that at the moment only escapes "/", not adding the <a></a> tags).
0
 
dabug80Author Commented:
I tried emailing with just the content:

<a>mysite.com</a>

And the link still didn't activate.
0
 
Dan CraciunIT ConsultantCommented:
Of course. That's not valid code. Try this:
<a href="mysite.com">mysite.com</a>
0
 
dabug80Author Commented:
Ok. I tried

<a href="http://www.mysite.com">mysite.com</a>
and
<a href="mysite.com">mysite.com</a>

Neither worked (that was the only content I had in the email). It just returned text in Yahoo.
0
 
Dan CraciunIT ConsultantCommented:
How did you send the email? From an email client? If so, you have to use the "Insert hyperlink" feature.
Here's what Thunderbird sent when I just pasted <a href="http://www.mysite.com">mysite.com</a> in the message body:
 &lt;a href=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.my=
site.com">"http://www.mysite.com"</a>&gt;mysite.com&lt;/a&gt;

Open in new window


And here's the result when using "Insert hyperlink":
<a href=3D"http://www.mysite.com">mysite.com</a>

Open in new window

0
 
Ray PaseurCommented:
Thanks for the points.  Looking over some of the broadcast email I receive I'm finding a frequent and sensible design that says, "Click here or copy / paste into your browser."  Seems like a good idea.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.