The type of gland that releases a thick sweat that has an unpleasant odor is apocrine. When apocrine sweat interacts with bacteria that's when the unpleasant odor becomes present. Apocrine sweat is a thick sweat and contains much of what becteria feed on.