title: AddEmbeddedImage() function embadding inline images as well as attaching same image as attachement
body: <p>I have added following parameters to PHPMailer object. Though I have embedded images for inline purpose using AddEmbeddedImage() function, it is working as expected, but additionally attaching same images as attachment to email &amp; displaying at bottom.</p>
  
  <pre><code>$msg = `&lt;table&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;img  src="cid:header_jpg" alt="www.example.in" width="770" height="4" border="0" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;`;
  
  $mail = new PHPMailer(true); //New instance, with exceptions enabled
  $mail-&gt;IsSMTP(); // tell the class to use SMTP
  $mail-&gt;SMTPAuth   = false;        // enable SMTP authentication
  $mail-&gt;Port       = 25;           // set the SMTP server port
  $mail-&gt;Host       = 'localhost';  // SMTP server
  $mail-&gt;Username   = "";           // SMTP server username
  $mail-&gt;Password   = "";           // SMTP server password
  
  $mail-&gt;AddReplyTo($sender, $sender_name);
  
  $mail-&gt;From       = $sender;
  $mail-&gt;FromName   = $sender_name;
  
  $mail-&gt;AddAddress($receiver);
  
  $mail-&gt;Subject  = $subject;
  
  //$mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
  $mail-&gt;WordWrap   = 80; // set word wrap
  
  $mail-&gt;MsgHTML($msg);
  
  $mail-&gt;IsHTML(true); // send as HTML
  $mail-&gt;AddEmbeddedImage('./images/header.jpg', 'header_jpg');          
  $mail-&gt;AddEmbeddedImage('./images/logo.jpg', 'logo_jpg');        
  $mail-&gt;AddEmbeddedImage('./images/alert_icon.png', 'alert_icon_png', 'alert_icon.png');        
  $mail-&gt;Send();
  </code></pre>
  
  <p>Please suggest something as early as possible...</p>