You might need to enable "Less secure app access" in your Google account settings for this to work, but remember that this makes your account more vulnerable.