Added Logging to Mail utility.