i want to build groovy (jenkinsfile) function to send emails. function is used all over the code with different body but same "frame" how can i call function with