aligned plugins/notification to latest changes and fix in sendmail function