Posibility to add functions to email notifications

Hey,

I want to add some data of a custom function I made to a notification email. Any ideas to do so?