Trying to fix email functionality in production