A note for T-Mobile US customers: T-Mobile will give you the unlock code for free after you've had your phone for 6 months. Just tell them you'd like to unlock the phone to use a foreign SIM. I've done this with a Sony Ericson, a Motorola, and I'll soon be doing it with my Blackberry.