We present some inequalities for the mappings defined by Dragomir [‘Two mappings in connection to Hadamard’s inequalities’, J. Math. Anal. Appl.167 (1992), 49–56]. We analyse known inequalities connected with these mappings using a recently developed method connected with stochastic orderings and Stieltjes integrals. We show that some of these results are optimal and others may be substantially improved.