title: PHP Mail function shows messages as plain text in inbox
body: <p>I am try to send a mail from my php application.Mail send successfully but plain text email which contains html tags.is there any solution for it.Please help me.My message is as follows</p>
  
  <pre><code> $message = '
                  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
                      &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
                          &lt;head&gt;
                              &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
                                  &lt;title&gt;Gaishan&lt;/title&gt;
                          &lt;/head&gt;
                          &lt;body&gt;
                              &lt;table width="750" border="0" cellspacing="0" cellpadding="0" style="background-color:#043c58; padding:15px;"&gt;
                              &lt;tr&gt;
                                  &lt;td style="padding-bottom:10px;"&gt;&lt;a href="#"&gt;&lt;img src="http://www.toobler.com/staging/gaishan/index.php/users/ec/1/logo_mail.jpg"; border="0" /&gt;&lt;/a&gt;&lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td colspan="2" style="background-color:#fff; padding:10px 30px;"&gt;&lt;h1 style="font-family:Arial, Helvetica, sans-serif; font-size:26px; font-weight:bold; color:#111;"&gt;testmail&lt;/h1&gt;
                                    &lt;p style="font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:normal; color:#555; line-height:22px;"&gt;http://www.toobler.com/&lt;/p&gt;
                                        &lt;a href="http://www.toobler.com/" style="font-family:Arial, Helvetica, sans-serif; color:#7ea515; text-decoration:underline;"&gt;http://www.toobler.com/staging/gaishan/index.php/users/ec/1/'.time().'&lt;/a&gt;
                                          &lt;p style="font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:normal; color:#4a483f; line-height:22px;"&gt;Demo textDemo textDemo textDemo text&lt;/p&gt;
                                          &lt;p style="font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:normal; color:#4a483f; line-height:22px;"&gt;Demo textDemo textDemo textDemo textDemo text&lt;/p&gt;
                                          &lt;br /&gt;
                                          &lt;p style="font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:normal; color:#4a483f; line-height:22px;"&gt;Demo textDemo textDemo text&lt;br /&gt;
                                          Demo textDemo textDemo text Demo textDemo text
                                          &lt;/p&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/table&gt;
                      &lt;/body&gt;
                  &lt;/html&gt;
                  ';
  </code></pre>