added mail-sending for notifies