add logging for email issue