Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

href in jsp

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
prograMNewbie
Asked:
prograMNewbie
1 Solution
 
getajob20Commented:
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
 
prograMNewbieAuthor Commented:

I cant believe I missed that > but no that wasnt it. The e - mail is being received by the client as plain text
0
 
ldbkuttyCommented:
for displaying html...

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

and as said by getajob20...
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
_marko_Commented:
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
 
ldbkuttyCommented:
message.println(MIME-Version: 1.0\nContent-Type: text/html; charset=iso-8859-1);

for e-mail html display...
                  
0
 
prograMNewbieAuthor Commented:

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

This wordked, thanks :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now