• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending Hyperlink in mails using SmtpClient

 
Anil aleti
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a servlets which sends mails using SmtpClient.But I want to send Hyperlinks in my mails.If I write some text like '@' or 'http://' in the body part of my mail ,that text is automatically converted into hyperlink.But, how to send hyperlinks without using '@' or 'http://'.
regards
Anil Reddy.
------------------
aaa
 
Anil aleti
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr. Carver,have you seen my question.If so please reply me.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw your message, but I don't understand what you are asking.
If you have a link without a '@' or a 'http://', how will the recipient's system know what to link to? Can you give a more concrete example of what you need?
This message, although in the Servlets/JSP forum, is really a Java Mail question (I Think), but we have no Java Mail forum at present.
 
Van Glass
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Content-Type in the header sent along with your email will need to change to text/html. By default the Content-Type is text/plain. Download JMail at http://www.jscape.com ... It supports this functionality.
------------------
JFind - Your Java Resource www.jfind.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic