
How do you do
First Meetings
Use 'how do you do' when you are introduced to someone for the first time as a polite formality. 
Not a Question
'How do you do' isn't a question expecting a detailed response, but a polite remark expecting a similar reply. 
Formal Occasions
This phrase is more common in formal or traditional contexts than in casual conversation. 