Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes insert a URL using mailto tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "insert a URL using mailto tag" Watch "insert a URL using mailto tag" New topic
Author

insert a URL using mailto tag

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
Hi,

<a href="mailto:foobar@example.com?Subject=Test&body=Click <a href='http://www.example.com'>here</a> to go to the site">E-mail</a>

If i click on the above link, it opens outlook with message body as

Click <a href='http://www.example.com'>here</a> to go to the site

Is it possible to avoid <a href tag and just display "here" in the message and if someone clicks on the link "here", it navigates to the URL.

Thanks,
[ May 13, 2008: Message edited by: Rajeev Ravindran ]

SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Think it depends on outlook and I doubt there is anything you can do with the html.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: insert a URL using mailto tag