how does mg+2 affect the amount of neurotransmitter released? Why?

how does mg+2 affect the amount of neurotransmitter released? Why?