Production and secretion of immunoglobulins in the gastrointestinal tract.