Ravens were never used to deliver anything, that is just a product of J. R. R. Martin's imagination.
Pigeons, on the other hand, have been used to deliver messages for milennia, specifically since the Greek and Roman times. They were used to proclaim the winner of the ancient Olympics.