Solved

href in jsp

Posted on 2004-04-27
6
711 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

This article is written by John Gates, CISSP. Gates, the SNUG President-Elect, currently holds the position of Manager of Information Systems at Lake Park High School in Roselle, Illinois.
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

627 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