Send HTML Emails Using wp_mail Function
WordPress’s wp_mail()
function default content type is text/plain
which does not allow using HTML. To send HTML emails you need to set the content type of the email to text/html
by using the wp_mail_content_type
filter. This is how you can do that