You are setting the content twice, add both lines in the same call to setContent
:
message.setContent("<h1>Congratulations on successfully registering with us</h1>"
+ "<h2>Your user name is:</h2>" +ApproveDAO.uname
+ "<h2>Your password is:</h2>" +ApproveDAO.pass, "text/html");