When one sends this it is to convey a variant form of social greeting. It is directly derived from the word hey meaning hello or hi, but in this instance the extra "y" or "y's" are used to symbolize amount of affection. The more "y's" the more affectionate.