prepare to Mail functional