Basic Guidelines For English Spellings
READ THESE ARTICLES
In nouns denoting something written or recorded (especially in a certain way)
From Greek gramma ‘thing written, letter of the alphabet’, from graphein ‘write’.
In nouns denoting a novelty greeting or message as a humorous or embarrassing surprise for the recipient.
On the pattern of telegram.