mail func removed