Automatic Printing

I need an applescript for printing automatically in the Mail program. I need it to be able to print HTML too. I’ve tried a few so far having “actions” activate them when a message meets certain criteria, but I haven’t found one that prints HTML. I would also like a way to pick a certain printer to print to on our netowork