I'm sure that most people use
I'm ... when he or she introduces himself/herself. However, I also know that in old days people use
My name is ... in the same situation. Is this phrase still used today? If that is the case, what kind of situations do people use it?
It seems that it is more often used in formal situations than otherwise, but what kind of formal situations do people use it?