Cells or tissue that produce substances that are released through a duct and into another organ; for example, the pancreas releases digestive juices into the intestine.