In the end I created my custom function like this:
function exprmgr_mynotify($condition, $text, $subject, $notifyaddress)
{
if ($condition==True) {
if ($text != null) {
mail($notifyaddress,$subject,$text);
}
}
return true;
}
I am invoking this function on the last question in application through relevance equation:
notify((Q0005.shown == 'Yes'), 'New application. Candidate name is: ' + Q0002.shown + ',' + Q0001.shown, '[HR] New application', 'hr@mycompany.com')
However, for every application I get 3 emails

. I guess that limesurvey invokes my method 3 times for some reason. Do you know how to avoid this?