Using App Passwords with Gmail

Go to your Google Account and on the left navigation panel, choose Security.

On the “Signing in to Google” panel, make sure I that 2-Step Verification is turned on and choose App Passwords. …

Select device and choose the device you’re using. Choose Generate.

Copy the generated password:

Log in to your IMAP, SMTP, POP3 account using your email and the generated password (instead of your email’s password):

Remember – no spaces!

C# code:

using (Imap client = new Imap()) 
    client.UseBestLogin("", "kvrcdzlicajaupje"); 

    // ... 


VB.NET code:

Using imap As New Imap 
    imap.UseBestLogin("", "kvrcdzlicajaupje") 

    ' ... 

End Using

Tags: , , ,


Consider using our Q&A forum for asking any questions.