The disease vaccinated against was the deadly smallpox .
Cowpox is similar to but much milder than the highly contagious and sometimes deadly smallpox disease . It resembles mild smallpox , and was the basis of the first smallpox vaccines .