implemented mail package