Experimental yields of neutral ground-state atoms and molecules and long-lived 3∏u excited molecules from interactions of 30- to 120-keV ions in magnesium vapour are reported. Results of calculations that approximate trapping in magnetically confined plasmas of beams produced by either D+ or ions neutralized in Mg-vapour are given.