title: How to add image to php mail body
body: <p>I'm trying to add image to mail body from folder.but it not display only display text on alt tag.this is my code.</p>
  
  <pre><code>&lt;?php 
     $to = $email;
          $subject="Reservation notification From abc";
          $from = 'abc@abc.com';
              $body = '&lt;html&gt;&lt;body&gt;';
              $body .= '&lt;img src="img/logo.png" alt="Hotel" /&gt;&lt;br/&gt;';
              $body .= '&lt;table rules="all" style="border-color: #666;" cellpadding="10"&gt;';
              $body .= '&lt;p style="color:#3366FF;font-size:14px;"&gt;Hello'.' '.$name.',&lt;/p&gt;';
              $body .= "&lt;/table&gt;";
              $body .= "&lt;/body&gt;&lt;/html&gt;";
  
          $headers = "From: $from \r\n";
          $headers .= "Reply-To: $$from \r\n";
          $headers = 'MIME-Version: 1.0' . "\r\n" .
             'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
  
             'X-Mailer: PHP/' . phpversion();
  
          mail($to, $subject, $body,$headers);
  ?&gt;
  </code></pre>