added mail functionality to tag:add hook