dabug80
asked on
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:
Is there a way to edit this code to ensure the url shown is 'active' (clickable) when it hits all email providers?
Thanks
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}
Is there a way to edit this code to ensure the url shown is 'active' (clickable) when it hits all email providers?
Thanks
ASKER
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.
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.
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.
ASKER
I've viewed the Yahoo page source and it's showing:
So it doesn't look like Yahoo likes to code links
<\/p>\\n\\nTo login and complete your assessment, please click on this link http:\/\/www.mysite.com\/here and then enter your password
So it doesn't look like Yahoo likes to code links
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).
You need to send standard html code, so review the generator (that at the moment only escapes "/", not adding the <a></a> tags).
ASKER
I tried emailing with just the content:
<a>mysite.com</a>
And the link still didn't activate.
<a>mysite.com</a>
And the link still didn't activate.
Of course. That's not valid code. Try this:
<a href="mysite.com">mysite.c om</a>
<a href="mysite.com">mysite.c
ASKER
Ok. I tried
<a href="http://www.mysite.com">mysite.com</a>
and
<a href="mysite.com">mysite.c om</a>
Neither worked (that was the only content I had in the email). It just returned text in Yahoo.
<a href="http://www.mysite.com">mysite.com</a>
and
<a href="mysite.com">mysite.c
Neither worked (that was the only content I had in the email). It just returned text in Yahoo.
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:
And here's the result when using "Insert hyperlink":
Here's what Thunderbird sent when I just pasted <a href="http://www.mysite.com">mysite.com</a> in the message body:
<a href=3D<a class=3D"moz-txt-link-rfc2396E" href=3D"http://www.my=
site.com">"http://www.mysite.com"</a>>mysite.com</a>
And here's the result when using "Insert hyperlink":
<a href=3D"http://www.mysite.com">mysite.com</a>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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