File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Including hyperlink in java mail

 
Deepesh Puthan
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to set a hyper link in a mail that is created through java code using java mail api 1.4
 
Paul Clapham
Sheriff
Pie
Posts: 20171
25
MySQL Database
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic