Beta-endorphin stimulates the secretion of insulin and glucagon in diabetes mellitus.