Generate an approximately fifteen-word sentence that describes all this data: United States Ambassador to Mexico; William Shaler TO 1812; REPRESENTATIVE William Shaler; William Shaler FROM 1810
William Shaler was the United States Ambassador to Mexico from 1810 to 1812.