remove send mail func