Transmission of classical and quantum information through a quantum memory channel with damping