Mariner 2 was the first spacecraft to have a positive encounter with a planet .
Mariner 2 was a NASA spacecraft .