Fetching details from the dictionary...

Japanese sweets made with glutinous rice and azuki bean paste
お祝いに御目出糖をもらったよ。
I received congratulatory sweets as a gift.
御目出糖を近所に配ったんだよ。
I distributed sweets to the neighbors.
昔は御目出糖を配る習慣があった。
There used to be a custom of giving sweets.