How do you activate mystery gift?

Go to Jubilife and then enter the Jubilife TV Station. Go to the 3rd floor and talk to the guy that's standing next to a lady. For the 1st phrase, say "EVERYONE HAPPY". And then for the 2nd phrase say "WI-FI CONNECTION", this will activate Mystery Gift in Pokemon Diamond/Pearl. Save right after that so you can access Mystery Gift!