We show that the characterization of existence and uniqueness up to vertical translations of solutions to the prescribed mean curvature equation, originally proved by Giusti in the smooth case, holds true for domains satisfying very mild regularity assumptions. Our results apply in particular to the non-parametric solutions of the capillary problem for perfectly wetting fluids in zero gravity. Among the essential tools used in the proofs, we mention a generalized Gauss-Green theorem based on the construction of the weak normal trace of a vector field with bounded divergence, in the spirit of classical results due to Anzellotti, and a weak Young's law for (Λ, r 0 )-minimizers of the perimeter.Other contributions to the theory have been obtained in various directions, see for instance Tam [54,55], Finn [27], Concus-Finn [16], Caffarelli-Friedman [5], as well as more recent works by De Philippis-Maggi [19], Caffarelli-Mellet [6] and Lancaster [35]. However the above list is far from being complete. A necessary condition on the pair (Ω, H) for the existence of a solution to (PMC) can be easily found by integrating (PMC) on any relatively compact set A ⊂ Ω with smooth boundary. Indeed, by applying the divergence theorem we get A