He had to find somebody, infect them with cowpox, then infect them with smallpox.
He gave people small amounts of cowpox, which gave them immunity to smallpox.