There are two different glands that produce sweat. One gland is call the eccrine gland and they are dispersed throughout the body, but are concentrated in the armpits, soles of feet, palms of hands, and the forehead. When the body over heats, from hot weather, physical exertion, or fervor, the eccrine glands help regulate body temperature by giving off a solution of water and salts that evaporates and cools the skin down. The second type of gland is the apocrine glands. These glands are concentrated in the armpits and groin area.
Apocrine glands develop during the stages of puberty and have nothing to do with body temperature.
These glands respond to sexual arousal, nervousness, and anger. They can sometimes respond to heat and exertion. The sweat produced by these glands is rich in organic substances that attract bacteria and produce a strong odor. Scientists say that our ancestors recognized these smells as sexual signs, just like in most animals. Symptoms of having body odor would include a distinctive, sweaty odor, especially forming from the armpits, groin, and feet.