On September 19th 1982 Scott Fahlman proposed in a post on the Carnegie Mellon University Computer Science bulletin board the use of :-) as a joke marker and :-( for messages that were not jokes.
As Scott himself points out he might not be the first as the use of coded emotion cues had existed since 1857 when the number 73 was used in Morse code to represent "Best Regards"