Wrapped email functionality in a try/catch