I\'m trying to send a confirmation email after user registration. I\'m using the JavaMail library for this purpose and the Java 8 Base64 util class.
I\'m encoding us
Your encoded text is [B@6499375d. That is not Base64, something went wrong while encoding. That decoding code looks good.
Use this code to convert the byte[] to a String before adding it to the URL:
String encodedEmailString = new String(encodedEmail, "UTF-8");
// ...
String confirmLink = "Complete your registration by clicking on following"
+ "\nlink";