在我的应用程序中,我正在向新用户发送电子邮件,我还想在电子邮件中发送一个按钮,当用户单击时。他将被重定向到我的网站..
我现在有这个
message.setSubject("TIE Account Created");
message.setText("Dear " + user.getFirstName() +" "+ user.getLastName()+" "
+ "\n\n Your Account created,"
+ "\n\n Please activate your account"
+ " <a href=www.example.eu:8080/Project/#!"+ user.getToken()+" >"
+" <button>Activate your Account</button> </a>"
);
Transport.send(message);
现在我在电子邮件中收到的是相同的代码,没有按钮,如下所示:
Dear user
Your Account created,
Please activate your account <a href=www.example.eu:8080/Project/#!d11qddnobot2665mjl20va87qh > <button>Activate your Account</button> </a>