Dilepton production in e−p and e+e− colliders