change the mail send function's semantics

Signed-off-by: yayanyang <yayanyang@gmail.com>