Update the mail functions