update mail bean