This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Including hyperlink in java mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Including hyperlink in java mail" Watch "Including hyperlink in java mail" New topic

Including hyperlink in java mail

Deepesh Puthan

Joined: Sep 27, 2011
Posts: 2
how to set a hyper link in a mail that is created through java code using java mail api 1.4
Paul Clapham

Joined: Oct 14, 2005
Posts: 19874

The easiest way is to just simply put the URL into the text of the e-mail. Quite often e-mail clients will detect URLs like that and display them as links.

Your other option is to send the e-mail as HTML, and to put the appropriate HTML codes for a hyperlink into the text.

(This doesn't have anything to do with JSP so I'm moving it to a suitable forum.)
I agree. Here's the link:
subject: Including hyperlink in java mail
It's not a secret anymore!