I'm using PHP to generate an html email which sends my clients latest stats in graph form. PHP generates a new image everytime it sends out stats with the same image name to prevent high disk space usage. Now my problem is the image gets cached thus displaying the old image to the client instead of the new image.
My html headers look as follows.
"From: Test <[email protected]>\n"
// . "To: " . $contact . " <" . $email . ">\n"
. "To: [email protected]\n"
. "X-Confirm-Reading-To: [email protected]\n"
. "Disposition-Notification-To: [email protected]\n"
. "MIME-Version: 1.0\n"
. "Content-Type: multipart/mixed;"
. ' boundary="PAA08673.1018277622/www.test.com"'
. "\nSubject: Stats for $name\n\n"
. "This is a MIME-encapsulated message\n\n"
. "--PAA08673.1018277622/[email protected]"
. "\nContent-Type: text/html\n\n";
How can I force the mail to download the latest generated image from the server?