Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending mail and Clicking a link in the mail

Eshwara Chaluvaiah
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello i am using "Spring Mail" to send mail to the user, and also i am sending a link to click, after clicking that link it should redirect to my registration page, how to do that?

here is the sample code, i am setting Html text to user using MimeMessageHelper.setText() method.. in href i am passing just the ip address of my machine... is it the correct way?

MimeMessage message=mailSender.createMimeMessage();
MimeMessageHelper helper=new MimeMessageHelper(message, true);

helper.setText("please click below link to activate your account and further processiong","<html><a href="+""+">plase Click</a></html>");

Thank you
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic