add mail functionality in development