wood burning stoves*
The moose likes Spring and the fly likes sending mail and Clicking a link in the mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "sending mail and Clicking a link in the mail" Watch "sending mail and Clicking a link in the mail" New topic
Author

sending mail and Clicking a link in the mail

Eshwara Chaluvaiah
Greenhorn

Joined: Jul 10, 2013
Posts: 16
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="+"192.168.1.3"+">plase Click</a></html>");

Thank you
 
wood burning stoves
 
subject: sending mail and Clicking a link in the mail
 
Similar Threads
Rich html email in spring
embedding javascript function in href
problem sending mail with spring javamailsender
set return path in MimeMessage
Refer friend link