Reposting from an old thread about the process
>Mailinator to get an e-mail address>Hola Better Internet, set to Mexico>Go to Gameplanet & register with Mailinator e-mail>Go to Diancie code page http://gameplanet.com/pokemon-d/ and use said e-mail >If you're seeing a red box, click on Hola icon and refresh (it'll say "Did it work?" and hit no) until you get a green box when inputting the e-mail>Check MailinatorSome people were saying that they were getting Diancie with no guaranteed 31 IV, but I got a code from that site and had no problems with it.
These are NA codes of course, EU and other places don't have it so easy. Good luck