Extended email plugin

Hi,

I’m using the Email Extension Plugin Version 1922.v5c93c9e80a_f9 in order to send an email after a job is finished. The email is sent normally on the events that I wish. I’ve set the recipient list to be the $DEFAULT_RECIPIENTS, which is configured from “Manage Jenkins” menu. In my configuration, I’ve created a “default” job, which is executing the main robot suite. The user in not triggering the default job by itself, but I’ve created two other jobs, which take the essential parameters (environment name, test case name, git repo, tags, etc.) and trigger the default job accordingly, so the two jobs only take the parameters and then they launch the default job accordingly. The email notification is configured on the default job and is sending the same email to the $DEFAULT_RECIPIENTS list all the time. How can I edit this variable ($DEFAULT_RECIPIENTS), so that I can customize its value according to the parameters? For example I want different recipients for a specific environment. Should I change it using groovy code? I can’t understand this logic, can please someone help? I’ve read the manual page of the plugin but I couldn’t understand how to do it. Thanks!