• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.mail package - code example?  RSS feed

 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to include a link in an email text. I used
<a href="http://www.test.com">http://www.test.com</a>
in the code. However, in the email I received it was not a link. I have set up the Outlook to receive email using HTML format.
Can anybody give me a sample code so that the email sent out could contain a link?
Is that something to do with set up the Content Type for the email?
Thanks in advance,
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are on the right track, the mime type would have to be text/html and the text would also need starting and ending html tags.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!