hi everyody,i need ur help.I am able to send subject and text as mail to the recepient but iam unable to send hyperlinks in th text.plz suggest me how to send
balagangadharm 0 Light Poster
Recommended Answers
Jump to Postyou may have better luck if you send the email as hypertext or have a html attachment.
try just enclosing the url in tags as such
String text=" Hello welcome,
click <a href=\"http://192.168.1.21:8080/tarka/resentemail.jsp\"> here</a> to enjoy ";see how something like that works.
…
Jump to Postyou'll need to send the message as html, including the proper mime types for the message content.
JavaMail I think offers that, but I don't know how to activate it (I hate non-text email).
Jump to PostYou can send it as a Multipart email with plain text and HTML.
you can find instructions from sun here
All you have to do is add both BodyParts, specifying the mime type of both parts.
All 9 Replies
masijade 1,351 Industrious Poster Team Colleague Featured Poster
balagangadharm 0 Light Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
balagangadharm 0 Light Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
Paul.Esson 53 Junior Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
jwenting 1,905 duckman Team Colleague
Paul.Esson 53 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.