You have to get a 'Application-specific' password from Google. You can do this on the Security section of your Accounts page. Click on Settings in the 2-step verification section.
Here's the link to the Google help page on application-specific passwords.