Solved

href in jsp

Posted on 2004-04-27
6
702 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

19 Experts available now in Live!

Get 1:1 Help Now