You put the html inside the body tag like instructed here: https://docs.espocrm.com/administrat.../#extemailsend

Don't forget...