aspose file tools*
The moose likes Servlets and the fly likes Sending Hyperlink in mails using SmtpClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sending Hyperlink in mails using SmtpClient" Watch "Sending Hyperlink in mails using SmtpClient" New topic
Author

Sending Hyperlink in mails using SmtpClient

Anil aleti
Greenhorn

Joined: May 02, 2000
Posts: 9
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


aaa
Anil aleti
Greenhorn

Joined: May 02, 2000
Posts: 9
Mr. Carver,have you seen my question.If so please reply me.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Van Glass
Ranch Hand

Joined: Nov 18, 2000
Posts: 110
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending Hyperlink in mails using SmtpClient
 
Similar Threads
Is the "From" Email Address Necessary?
can java mail api use HTTP protocol
Spring framewok email component (send mail to gmail)
Receiving Mails Using Pop
Java mail and Microsoft Exchange Server