title: add html in wp_mail function wordpress
body: <p>i have created a register form in wordpress but i have a problem with the email confirmation, i'm trying to add some html in the body but i made something wrong, can you help me?
  this is part of my code in functions.php, is the code that send the email to user:</p>
  
  <pre><code>if ( $user_id &amp;&amp; !is_wp_error( $user_id ) ) {
          $code = sha1( $user_id . time() );
          $activation_link = add_query_arg( array( 'key' =&gt; $code, 'user' =&gt; $user_id ),          get_permalink(168));
          add_user_meta( $user_id, 'has_to_be_activated', $code, true );
  
          wp_mail( $email, 'BLOOOGERS Activación cuenta', '&lt;img src="..."&gt; &lt;br /&gt; &lt;br /&gt;Bienvenido a nuestra comunidad, este es el link para que actives tu cuenta:&lt;br /&gt; &lt;br /&gt;' . $activation_link );
  
          add_filter( 'wp_mail_content_type', 'set_html_content_type' );
          function set_html_content_type() {
              return 'text/html';
          }
  
      }
  </code></pre>