In my original exploration, I did do that, but even though the reference to the rcmail instance worked correctly, it was returning null for the output attribute. I'll give it another go.