fixed error in the case of multiple recievers in mail plugin
fixed some errors in last commit..