Controlling a relay with a transistor switch

If you want to control many channels, says more than 4 channels, I would suggest to use ULN2803 Line Driver to control the relay.