You got mystery gift in Pokemon diamond but you don't get anything when you use it with your friendhow to get the stuff from it?

Your friend must have the gift as well.