A group of cells or a single cell in animals or plants that is specialized to secrete a specific substance.