started mail functionality