html email - how to send link in emal using java mail sender -


hi trying send link in email using gmail smtp.but sending string.can body me. in advance. java:

 string url="localhost:8080/#/activateuser/5575/958104f7-557e-4703-bcf7-55c9e37b7ad7";         string content="<a href='"+url+"'>"+url+"</a>";         msg.setcontent(message1+" "+content,"text/html; charset=utf-8");          // sends e-mail         transport.send(msg);         logger.info("email sent succesfully"); 

response: verification token : 5575 set password click on url : localhost:8080/#/activateuser/5575/958104f7-557e-4703-bcf7-55c9e37b7ad7 (i want show url link)

you might need add "http://" before "localhost:8080"


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -