title: I am in need of auto response email code in php,where the image specified must automatically delivered to the end user
body: <p>This is my sample code for auto response email in php. When i try to send, the auto response they receiving is not the output. Rather, they are receiving the HTML code. </p>
  
  <pre><code>&lt;?php
  $to = 'test@gmail.com';
  $subject = 'persona details';
  
  $name = $_POST['name'];
  $email = $_POST['email'];
  
  $message = "
  Customer Name: $name &lt;br/&gt;
  Email Id: $email
     ";
  
  
  
    // Always set content-type when sending HTML email
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
    $headers .= "From:" . $email . "\r\n";
  
  
    // Auto response code
  
    $headers2 = "MIME-Version: 1.0" . "\r\n";
    $headers2 .= "Content-type:text/html;charset=UTF-8" . "\r\n";
    $headers2 = "From:" . $to."\r\n";
  
    $body=&lt;&lt;&lt;EMAIL
    &lt;html&gt;
     &lt;head&gt;
     &lt;title&gt;HTML email&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;h1&gt;Sudhakar&lt;/h1&gt;
    &lt;p&gt;&lt;img src='http://garciniainfotech.com/images/garcinia.jpg'&gt; &lt;/p&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  
     EMAIL;
  
     mail($to,$subject,$message,$headers); 
     mail($email,$subject,$body,$headers2);
     ?&gt;
  </code></pre>