title: phpmailer: addEmbeddedImage "background-url"
body: <p>How can I add the background-img from this code-snippet into phpmailer, so that this image is embeded in the mail:</p>
  
  <pre><code>&lt;td background="http://www.xxx.de/img.jpg" bgcolor="#ffffff" style="background: #ffffff url('http://www.xxx.de/img.jpg')" class="background" height="120" valign="top"&gt;xxx&lt;/td&gt;
  </code></pre>
  
  <p><strong>My way:</strong></p>
  
  <pre><code>$mail = new PHPMailer();
  $mail-&gt;AddEmbeddedImage('http://www.xxx.de/img.jpg', 'bgimg1', 'img.jpg');
  </code></pre>
  
  <p>So I replace the urls:</p>
  
  <pre><code>&lt;td background="cid:bgimg1" bgcolor="#ffffff" style="background: #ffffff url('cid:bgimg1')" class="background" height="120" valign="top"&gt;xxx&lt;/td&gt;
  </code></pre>
  
  <p>When I receive the Mail I can find bgimg1 in the mail source, but it is not displayed in my mail programm (thunderbird).</p>
  
  <p>If I just make a img-Tag the img is displayed:</p>
  
  <pre><code>&lt;img src="cid:bgimg1"&gt; 
  </code></pre>
  
  <p>Any Ideas how I can get the backround-url into my html-Mail?</p>