Back to Top

How to Change WordPress Email Content Types To HTML

To change content Type of mail in WordPress

Here is the quick article about to explain How to Change WordPress Email Content Types To HTML.Wordpress has a function wp_mail to send mail from the site and by default the content type of wp_mail function is text/plain.

To change the content type of mail function, you need to filter the content type before used for WordPress.

In Web development or website, most important is to show user actual time other wise users get confused.

Let’s understand the code:

you can add the filter when you require or before you call function wp_mail and remove after calling a wp_mail function using below code.

That’s it.Now you can send mail 🙂

Thank you for reading.Feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Share:
Share on Facebook0

Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to display ADMIN Toolbar in UI

Posted on 5 years ago

Bhumi

How to use HTML5 Constraint Validation

Posted on 2 years ago

Bhumi

How to allow External domain in WordPress?

Posted on 2 years ago

Bhumi

Steps To speed up Eclipse IDE

Posted on 4 years ago

Bhumi

how to use the CSS3 Gradient Effect

Posted on 5 years ago

Zinal

Introduction to the Instagram API

Updated 4 weeks ago

Bhumi

How to Use the HTML5 Full-Screen API

Updated 1 month ago

Bhumi

What are Lambdas and Closures in PHP?

Updated 1 month ago

Bhumi

MySQL REGEXP Operator

Updated 1 month ago

Bhumi

The Reader’s Poll – August 2014

Posted on 2 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi