title: Persits.MailSender.4 error '800a0007' upon calling objMail.AddEmbeddedImage
body: <p>I'm using <strong>Persits AspEmail</strong> for sending emails in a Classic ASP application. I've used it many times before but I had never come across the following issue:</p>
  
  <p>I need to embed an image into the body of an email, but this image is actually virtual (I'm using IIS Rewrite to handle all URL rewrites, so when an image is requested from a specific directory, IIS Rewrite calls an .asp page that displays the image using the Persits AspJpeg component), but when I try to do it, AspEmail returns this error:</p>
  
  <pre><code>Persits.MailSender.4 error '800a0007'
  The system cannot find the path specified.
  </code></pre>
  
  <p>Any other image that is not virtual will get embedded.</p>
  
  <p>The code is simple:</p>
  
  <pre><code>Set objMail = Server.CreateObject("Persits.MailSender")
  ...
  objMail.AddEmbeddedImage virtualImageUrl, virtualImageCid
  ...
  objMail.Send
  </code></pre>
  
  <p>Am I doing something wrong here? If AspEmail can't handle virtual files, is there a way around this? Please, other than using FSO to temporarily copy the file to a directory in order to embed it, or leaving the image on the server -- I really need it to be embedded.</p>
  
  <p>Thank you (a lot!) in advance,</p>
  
  <p>Cheers,</p>
  
  <p>Mark</p>
  
  <p>P.S.: My server is running IIS 7.5 / IIS Rewrite Module 2 / AspEmail v5.1.0.3.</p>