Wonder Cards do not exist in Pokémon Diamond. They were a feature of Generation III (GBA) and earlier. In Diamond/Pearl, Mystery Gifts use the Wireless Adapter (local) or the now-defunct Nintendo Wi-Fi Connection.
Today: Online Mystery Gifts are impossible (servers dead). Only local wireless trades/infrared (HGSS) work. Emulators may simulate, but unsupported.