In 1832 de Lesseps was appointed vice-consul at Alexandria , and in 1833 he became consul in Cairo , and soon afterwards given the management of the consulate general at Alexandria , until 1837 . In 1833 de Lesseps was sent as consul to Cairo , and soon afterwards given the management of the consulate general at Alexandria , a post that he held until 1837 .