Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to send a link in a Mail Msg 2

Status
Not open for further replies.

tarawfp

IS-IT--Management
Jul 5, 2004
17
0
0
US
one a person has registered to my web page a msg is send to his email account to give him a default password. in the same msg I want to add a link to another page where he could confirm registration. do I just add a href in the msg part in my servlet. please help
 
Hi,

Yes, you could simple use the href in your msg.

Or
Create a new BodyPart and add it Message.

MimeBodyPart mbp = new MimeBodyPart();

mbp.setDataHandler (new DataHandler(new URLDataSource(url)));

Cheers
Venu
 
Venu thanks for the info.. one more thing...in this case can I include both a text msg and a url...this is my first time to use javamail so Im not sure how it works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top