How do messages get to the endocrine system from the brain?

Messages to them usually travel by way of the blood.