I'm not really sure, but it seems like a bug in postemail plugin. It sends notification to all the managers although i have selected only one to receive notifications.
I had to change this code:
// Nope! I have to notify a subset. Let's start removing them $t_managers = $managers; for($i = 0; $i < count($t_managers); $i++) { if(!in_array($t_managers[$i]->id, $notify)) { unset($managers[$i]); } }
into this one:
foreach($managers as $manager) { if(in_array($manager->id, $notify)) { $xmanagers[]=$manager; } }
in file postemail.php to make it work as it should. At least it notifies only managers i have selected.
Is this some bug or did i miss something?