title: Sending HTML email in PHP
body: <p>I am working on an HTML page where i need to send confirmation by HTML email using PHP.
  I don't have much experience in PHP as i occasionally work on PHP.</p>
  
  <p>I am able to send the HTML email using PHP and it comes up nice except the IMAGE part.</p>
  
  <p>I have checked about 30 example and implement different ways of but non works.</p>
  
  <p>When i check the source code of email it shows image part as</p>
  
  <pre><code>&lt;img src="http://www.xyz.com/images/emailheader.jpg\&amp;quot;"&gt; 
  &lt;img src="http://www.xyz.com/images/emailheader.jpg\&amp;quot;;" alt="mage&amp;quot;"&gt;
  </code></pre>
  
  <p><strong>Code for HTML</strong></p>
  
  <pre><code>$subject = 'Confirmation';
  $message = '&lt;table &gt;&lt;tr&gt;&lt;td&gt;&lt;img src=\"http://www.xyz.com/images/emailheader.jpg\" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td &gt;'. "\r\n";
  $message .= '&lt;img src=\"http://www.xyz.com/images/emailheader.jpg\"; alt="Image" /&gt;';
  $message .= 'Title &lt;br/&gt;&lt;br/&gt;'. "\r\n";
  $message .= 'Dear '. $_SESSION['FN'] . ' '.$_SESSION['LN'].'&lt;br/&gt;&lt;br/&gt;'. "\r\n";
  $message .= ' &lt;br/&gt;&lt;br/&gt;'. "\r\n";
  $message .= 'Name: '. $_SESSION['FN'] . ' '.$_SESSION['LN'].'&lt;br/&gt;'. "\r\n";
  $message .= 'Email: '. $_SESSION['Email'].'&lt;br/&gt;'. "\r\n";
  
  
  $message .= '&lt;br/&gt;&lt;br/&gt;.'. "\r\n";
  
  $message .= '&lt;br/&gt;&lt;br/&gt;Best Regards,'. "\r\n";
  
  $message .= '&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;';
  
  //Headers
  $headers  = 'MIME-Version: 1.0' . "\r\n";
  $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
  $headers .= 'Content-Transfer-Encoding: quoted-printable' . "\r\n";
  $headers .= 'From: booking@xyz.com' . "\r\n";
  $headers .= 'Reply-To: abc@xyz.com' . "\r\n";
  $headers .= 'X-Mailer: PHP/' . phpversion();
  
  ini_set ( "SMTP", "smtp.abc.com" );
  </code></pre>
  
  <p>I would appreciate if some can correct my code or at-least tell me what i am doing wrong</p>