Herpes esophagitis is a viral infection that involves inflammation and ulcers in the esophagus, the tube that carries food from the mouth to the stomach.