One way you could do this (and I am going to guess this is how live does it too) is send mails from the PC to the PC when they level up. An easy way to do this would be sending some sort of opcode to the UCS that the client normally does when a player levels up. Depending on the set level, they would get a different mail. I think loading these messages would best be done from the database when a player levels up.
Hope that helps. And if there is nothing that client sends already listed, you could always fake a client connecting and sending that mail by constructing a packet for it, or look into how messages are sent from server <-> server. (follow servertalk.h's opcodes)
|