Solved

href in jsp

Posted on 2004-04-27
6
703 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
When Does RestAdapter establishes HttpConnection 5 198
jersey maven project error 7 137
spring example errors 33 249
Suggestion on WebSite Template Sites 6 81
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

947 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now