title: Embed image with a link using phpmailer from a private website cannot be seen by the recipient
body: <p>Using phpmailer I need to build an email with an embedded image which has a link.<br>
  At the body of the message it is trivial to include </p>
  
  <pre><code>&lt;a href="link"&gt;&lt;img src="URL of the image to embed" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>My problem is that that URL is protected by username and password so the recipient of the email cannot see the image, just a broken thumbnail with the link.<br>
  I tried using file_get_contents() as I read in other questions but didn't get the solution.</p>