Print HTML email from Mail

I’ve been through a few scripts and can get text emails to print from mail but not HTML and images… any ideas?

What about attachments? If a good virus checker is set up could I print all attachments?