update send mail method