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γDεγD-0.5+0.2ε210-1110-17 and its mixing parameter with the photon, γDεγD-0.5+0.2ε210-1110-17. The sensitivity of the SHiP detector is reviewed for dark photons in the mass range between 0.002 and 10 GeV. Different production mechanisms 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εγD-0.5+0.2ε210-1110-17 ranging between 0.8 and 3.3γDεγD-0.5+0.2ε210-1110-17 GeV, and γDεγD-0.5+0.2ε210-1110-17 ranging between γDεγD-0.5+0.2ε210-1110-17 and γDεγD-0.5+0.2ε210-1110-17.