title: How to send a button instead of a link in an HTML email?
body: <p>My app sends an email from my java code. I also want to send a link within a button which will say &quot;Activate your account&quot;.</p>
  <p>Here is what I have:</p>
  <pre><code>Message message = new MimeMessage(sessionMail);
  message.setFrom(new InternetAddress(&quot;test@gmail.com&quot;));
  message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(user.getEmailAddress()));
  message.setSubject(&quot;Account Created&quot;);
  message.setText(&quot;Dear&quot;+ user.getUserName() 
                        +&quot; &quot; + &quot;\n\n  Your  Account created,&quot; 
                        + &quot;\n\nPlease activate your account&quot; 
                        + &quot;&lt;a&gt; www.test.eu:8080/Project/&quot;
                        + user.getToken()+&quot;&lt;/a&gt;&quot;);
  Transport.send(message);
  </code></pre>
  <p>The following line</p>
  <pre><code>+ &quot;&lt;a&gt; www.test.eu:8080/Project/&quot;+ user.getToken()+&quot; 
  </code></pre>
  <p>works as a link right now, I just want to put this link in a button and send that button to user's email.</p>
  <p>Is there any solution for this?</p>
  <p>I am trying this:</p>
  <pre><code>      message.setText(&quot;Dear&quot;+ user.getUserName() +&quot; &quot;
      + &quot;\n\n  Your Tie Account created,&quot;
  
  + &quot;\n\n Please activate your account&quot; 
  + &quot; &lt;a href=www.example.eu:8080/TieProject/#!&quot;+ user.getToken()+&quot; &gt;&quot;
  +&quot; &lt;button&gt;Activate your Account&lt;/button&gt; &lt;/a&gt;&quot;
  
      );
  </code></pre>