ShenaCat wrote:.... Definitely there needs to be more explanation before a script could be built .....
I think that is what Jay meant, when the problem is unknown it is very difficult to solve!
to get to the actual problem.
It's not hard to do, nothing is.
first get your data from the database
then manipulate the data so it becomes what you want, possibly in a couple of steps.
and then use the mail function to mail it.
split the problem into little pieces you can solve and solve them one at a time. When your done, the whole problem is fixed