Unable to send html email using wp_mail in gmail as the SMTP

[ad_1]

I honestly don’t know what I did wrong, I used the WP mail smtp plugin, set gmail as the smtp, the test html email did work, tried both the add_fitler hooked method and setting the header of the email.

All my html tags are being parsed as text. What did I missed?

Note: the wp_mail function are called in a plugin I made which is used to add a rest api route, although i doubt it matters

[ad_2]
2 Comments
  1. You’re going to need to figure out what’s going wrong first eg some sort of error message.

    will show you the logs

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer