Jenner had been told about the idea that infection with cowpox protected against smallpox by a milkmaid who visited the surgeon he was apprenticed to many years before.
In addition, in 1774, a farmer named Benjamin Jesty had vaccinated his wife and two sons with cowpox taken from the udder of an infected cow and had written about his experience.
It is not clear if Jenner knew of this event...