Here is a link to a website which says the dentists knew mercury was toxic, and agreed not to use it way back in 1840:
http://www.y2khealthanddetox.com/mercfillings.html