What are you trying to do in the post hook? The actual code is responsible for printing out the attachment (i.e. no template parsing happens), so trying to do anything in a post hook related to output is pointless. Jason Rhinelander Gossamer Threads jason@gossamer-threads.com