When we were just starting out in solar system exploration, the very first missions simply flew by Mars, taking as many pictures as possible on their way past.
Flyby missions include: Mariner 3-4 | Mariner 6-7