Prolactin is secreted by the anterior pituitary gland to stimulate milk production (lactation) in the mammary glands after childbirth. While oxytocin is crucial during labor for uterine contractions, prolactin is specifically responsible for the synthesis of milk following birth.