A stargram was a form of communication used in the mid-23rd century.

James T. Kirk sent Janet Wallace a stargram upon the death of her husband, Theodore, this being their only form of contact between the years 2261 and 2267. Janet mentioned this in a conversation with Kirk during her brief time on the USS Enterprise, in which they discussed their failed past relationship and the unlikelihood of rekindling it. (TOS: "The Deadly Years")