Still can't figure out GMail IMAP Settings

Aug 20, 2013 at 6:48 PM
I've seen these posts:
http://equinox.codeplex.com/wikipage?title=Authenticating%20the%20User%20with%20XOAUTH
http://equinox.codeplex.com/wikipage?title=Basic%20IMAP%20Programming%20Reference#x_x_x_x_x_x_a0
http://equinox.codeplex.com/discussions/251809

However, they don't seem to have the right object model. Perhaps I'm not using the right "using" statements. Perhaps GMail has changed their structure. Either way, I have not been able to get authenticated using GMail. Can you please assist?

Thanks,
May 27, 2014 at 5:11 PM
for smtp
this.smtpClient = new SmtpClient();
this.smtpClient.Security = SecurityPolicies.Explicit;
this.smtpClient.Connect("smtp.gmail.com", 465);
this.smtpClient.Authenticate(username, password, SaslMechanics.Plain);
for imap
this.imapClient = new ImapClient();
this.imapClient.Security = SecurityPolicies.Explicit;
this.imapClient.Connect("imap.gmail.com", 993);
this.imapClient.Authenticate(username, password, SaslMechanics.Plain);
this.imapClient.Select("INBOX");