removing mails code