Search code examples
htmlemailcachingapple-mail

Developing HTML email newsletter, refreshing Apple Mail


I'm developing an HTML newsletter system using PHP & PEAR. It sends out the emails fine.

However I cannot force Apple Mail to reload images from the server. I have tried:

  • Restarting Mail
  • Clear ~/Library/MailDownloads
  • Clear ~/Library/Cache/Mail
  • Empty Safari cache

Does any one know where Apple Mail caches the images ?


Solution

  • Using the latest FSeventer program I traced the cache file to:

    /private/var/folders/Sl/rand chars+++TM/-Caches-/com.apple.mail/Cache.db

    I tried turning of internet connection, deleting the file, and then viewing the HTML newsletters. No images loaded. After re-connecting and viewing the HTML mail the Cache.db file grew to 1MB in size.

    There seems to be another intermediary cache. I tried deleting the cache & disconnectinf whilst viewing two different newsletters. They bothy displayed properly. After I quit and re-opened Mail, they images did not display.

    So it is possible to delete the cache, but I have not found a way to force refresh the images.