How To Send HTML Format Email in PHP

Welcome to, I will cover in this article which will show you how to send HTML format email using PHP, normally PHP send plain text email it’s can’t send any formatting or graphics by default so, send the email with HTML it’s the best way to send formatting email so let’s start this article.

//Send HTML Email Using PHP

//subject of the mail
$subject = "Test Email";

//message of the mail which contains some html
$message =”

Name Email


$headers .= “”;
$headers .= “Content-type: text/html; charset=iso-8859-1rn”;
mail($to, $subject, $message, $headers);
echo $message;

I hope you like my post and don’t forget to share with your colleagues on facebook or twitter or GitHub!!!!


Hey, have you ever thought about turning your hobby into your job? It's like a dream come true, right? That's exactly what I did with I love helping people out with my experience, and the best part is, you don't even to pay me for it! As a content publisher, I share the knowledge and experience which I gain in day-to-day life. Thanks for visiting the site.

Leave a Reply

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

Back to top button

Adblock Extension or Add on Detected

Please consider supporting us by disabling your ad blocker