I want to create window application through which i can read email from gmail.
Actually i want to read proper format of email like to,from,subject,cc and body.
You may need to make sure you are using the correct hostname and port number. Configuring these settings will depend on the IMAP API you are using for .Net
But the settings you want to use are listed on google's site.