PHP mail function not sending image
<p>I'm making a mail function which could send some text with a picture, it works fine with plain text, but after adding the img code, what recipients got was still plain text. The image was located in the root directory.</p>

<p>Code below:</p>

<pre><code>&lt;form method="POST"&gt;
&lt;input name="submit" type="submit"  value="send!"/&gt;
&lt;/form&gt;
&lt;?php 
if(isset($_POST['submit'])){
$to="example@outlook.com";
// subject
$subject = 'test05';

// message
$message = "
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;Birthday Reminders for August&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;p&gt;Here are the birthdays upcoming in August!&lt;/p&gt;
  &lt;table&gt;
&lt;img id='cat' width='208px' src='/cat.jpg'&gt;
  &lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;

";

// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: Mary &lt;mary@example.com&gt;, Kelly &lt;kelly@example.com&gt;' . "\r\n";
$headers .= 'Reply-To: example@outlook.com' . "\r\n";

// $headers .= 'From: Panpan &lt;general@panpan.tokyo&gt;' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";


// mail($to, $subject, $message, $headers);
      if (mail($to, $subject, $message, $headers)) {
        // echo "Mail was sent! Great!";
        echo $message;
      } 
      else {
        echo "Mission Failed";
      }

}
?&gt;
</code></pre>