title: How to embed image in phpmailer - I can't do it, why?
body: <p>I am trying to include an image into my message in phpmailer. The following is my code, Mails are being sent but without the embeded image, instead they're appear to be attached to the email. 
  Not sure what is wrong with my code, please help?</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  
  &lt;?php
      require_once('class.phpmailer.php');   
      require_once('class.smtp.php');    
      $mail = new PHPMailer();   
      $mail-&gt;CharSet = "UTF-8";
      $mail-&gt;From = "xxxxx";    
      $mail-&gt;FromName = "Jan Nowak";   
      $mail-&gt;AddReplyTo('xxxx'); 
  
      $mail-&gt;Host = "xxxxxx";  
      $mail-&gt;Mailer = "smtp";   
      $mail-&gt;SMTPAuth = true;    
      $mail-&gt;Username = "xxxxx";    
      $mail-&gt;Password = "xxxxxx";    
      $mail-&gt;Port = xxx;  usługi poczty
      $mail-&gt;Subject = "temat";    
      $mail-&gt;Body = 'treść maila';    
  
      $mail-&gt;IsHTML(true);
      $mail-&gt;AddEmbeddedImage('images/Kartka.png', 'Kartka');
      $mail-&gt;Body = "&lt;h1&gt;Test 1 of PHPMailer html&lt;/h1&gt;&lt;p&gt;This is a test&lt;/p&gt;";
          "&lt;p&gt;This is a test picture: &lt;img src=\"images/Kartka.png\" /&gt;&lt;/p&gt;";
  
  
       //$mail-&gt;addAttachment ('images/Kartka.jpg'); 
      $mail-&gt;AddAddress ("xxxxx");    
  
       if($mail-&gt;Send())    
          {                      
          echo 'E-mail został wysłany'; 
          }            
      else    
          {           
          echo 'E-mail nie mógł zostać wysłany';    
          }
    ?&gt;  
  
  &lt;/html&gt;
  &lt;/head&gt;
  </code></pre>