allow plugin to know item cart

I'm writing a plugin and when send the email I don't know the product's item cart.
This is a proposal for the solution. Thank's