To send HTML email via WordPress is very easy.
1. If you want wp_mail() function always send HTML supported mails, add this code to your theme->functions.php
add_filter( 'wp_mail_content_type', function( $content_type ) { return 'text/html'; } );
2. If you want it to be in special cases you can use the filter function above in if () condition. (For example if (isset($_GET[“registration”])) {….})
3. If you want to set it manually only when it is needed, then build your wp_mail headers yourself. Here is sample code:
$headers = 'From: YOUR NAME <[email protected]>' . "\r\n" . 'Content-Type: text/html; charset=UTF-8' . "\r\n"; $message = "<strong>Your HTML text message here</strong>'; wp_mail('CLIENT_EMAIL_HERE', 'SUBJECT_HERE', $message, $headers);