A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other JSE/JEE APIs
Including hyperlink in java mail
Joined: Sep 27, 2011
Oct 02, 2011 21:53:02
how to set a hyper link in a mail that is created through
code using java mail api 1.4
Joined: Oct 14, 2005
Oct 02, 2011 22:07:12
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
so I'm moving it to a suitable forum.)
It is sorta covered in the
JavaRanch Style Guide
subject: Including hyperlink in java mail
WA #1.....word association
how to implement sending mail?
Automated mail from the recepient
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015