|
BobbyDouglas -> Best stats e-mail format? (10/2/2006 23:47:09)
|
We run awstats on our hosting servers and want to setup a monthly cron job that e-mails the stats to specific clients. Currently the script we have uses curl to grab the awstats page. The problem is that I think it would be better if more than just the html page output was sent. The images are currently not attached. There are a couple reasons why, the path for the image contains an initial forwardslash, causing the files to be called from root (ex: /images/awstats/other/en.png), as well as the fact there are sooo many images. How should the files be attached? Image paths must be renamed for everything (not that much of an issue though since the script is written in php) Here are a couple solutions I have thought about.... 1) Attach all image files (yes there will be a TON) 2) Put everything (images and html file) into a zip and attach that and require the user to unzip that 3) Put the images online somewhere and reference the html page with the new location of the images I don't see a perfect solution to any of this. I wouldn't want to require the client to be online to view the html file, I wouldn't want to require the client to unzip everything, and I wouldn't want to have the client see a hundred or something images as attachments. What's your input?
|
|
|
|