Solved

href in jsp

Posted on 2004-04-27
6
705 Views
Last Modified: 2011-10-03
Hi, im sending an href link that links back to my site. Below is what is what ive come up with,  the link just appears as plain text in the e mail, in other words a href does'nt appear at all. Any help id appreciate thanks

 messageBodyPart.setText("You Have received an attachemnt\nTo view this attachemnt click here\n <A HREF= http:\\www.mysite.com </A");
0
Comment
Question by:prograMNewbie
6 Comments
 
LVL 2

Expert Comment

by:getajob20
ID: 10933706
Hi prograMNewbie,
Are you missing a > at the end of that line?

Also, is the message being recieved by the e-mail client as plain text or html?

Matt
0
 

Author Comment

by:prograMNewbie
ID: 10933778

I cant believe I missed that > but no that wasnt it. The e - mail is being received by the client as plain text
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10933805
for displaying html...

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

and as said by getajob20...
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 2

Accepted Solution

by:
_marko_ earned 50 total points
ID: 10933820
Try this one:

messageBodyPart.setText("You Have received an attachemnt\nTo view this attachemnt <A HREF=\"http://www.mysite.com/\">click here</A>");


Regards,

Marko
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10933832
message.println(MIME-Version: 1.0\nContent-Type: text/html; charset=iso-8859-1);

for e-mail html display...
                  
0
 

Author Comment

by:prograMNewbie
ID: 10933871

>>messageBodyPart.setText("You Have received an attachemnt\nTo view this attachemnt <A HREF=\"http://www.mysite.com/\">click here</A>");

This wordked, thanks :)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question