Separated enquiry email logic from transaction logic.