The dusty environment of quasars: Far-infrared properties of optical quasars