Mariner 4 was the first successful American flyby mission to Mars. The purpose of the probe was to conduct close-up scientific observations and experiments of the planet, and transmit them back to Earth. It flew past Mars on July 15th 1965.
For more about Mariner 4Click Here