This can be done by altering the email templates, which are scripted with NVelocity and have access to contextual data about their content.
If you haven't already seen it, I recommend this guide to customizing email templates in Developer Space as a good starting point:
telligent.com/.../email-templates.aspx
Hope this helps!