Mammals have sweat glands that produce sweat to cool the body when it is hot. These glands are located all over the body but are most concentrated on the palms, soles, and forehead. When the body heats up, sweat glands release sweat onto the skin. As it evaporates, it removes heat and cools the body down.