Transmission of quantum information through quantum fields in curved spacetimes