Shipment status e-mail

I have created a BAM to e-mail the packing and tracking information
when there is a shipment. I want the e-mail to go out when the invoice
is posted and not just invoiced. Has anyone done this before?

Steve