Dark photons are hypothetical massive vector particles that could mix with ordinary photons. The simplest theoretical model is fully characterised by only two parameters: the mass of the dark photon m(gamma)D and its mixing parameter with the photon, epsilon. The sensitivity of the SHiP detector is reviewed for dark photons in the mass range between 0.002 and 10 GeV. Different productionmechanisms are simulated, with the dark photons decaying to pairs of visible fermions, including both leptons and quarks. Exclusion contours are presented and compared with those of past experiments. The SHiP detector is expected to have a unique sensitivity for m. D ranging between 0.8 and 3.3(-0.5)(+0.2) GeV, and epsilon(2) ranging between 10(-11) and 10(-17).