The prescribed mean curvature equation in weakly regular domains