How To Send HTML Format Email in PHP

Welcome to pinepl, in this article we will show you how to send HTML format email using PHP, generally 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 today article.

//Send HTML Email Using PHP - Veewom

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

//message of the mail which contains some html 
$message ="
<table width='800' border='1'>
  <tr bgcolor='#CCCCCC'>
    <th>Name </th>

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

We hope this article helped you learn how to Send HTML Format Email in PHP. You may also want to see – How To Change The Default WordPress Email Address.

If you liked this article, then please share to social networking site. You can also find us on Twitter,Facebook and Instagram.

Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

Editorial Staff at Veewom is a Team of Experts led by Bharat Makvana.

You may also like this!