Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8444851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:30:15+00:00 2026-06-10T09:30:15+00:00

I’m using Visual Basic 2010 professional edition and I’m working on a software that

  • 0

I’m using Visual Basic 2010 professional edition and I’m working on a software that part of it is to get the [Inbox] E-mails, but I can not even get a response from the server.

I did these steps:

  1. Made sure that my Gmail.com account is working with IMAP
  2. I’m using 2-step verification method, so I’m using my application password.
  3. I’m using this code :

        Imports System.Net.Sockets
        Imports System.IO
        Imports System.Text        
        Imports System.Net.Security
    
        Public Class ImapClient1 
    
        Dim ServerNm As String 
        Dim UsrNm As String
        Dim PassStr As String
        Dim _IntPort As Integer
        Dim ImapClient As New Net.Sockets.TcpClient
        Dim NetworkS_stream As NetworkStream
        Dim m_sslStream As SslStream
        Dim Read_Stream As StreamReader
        Dim StatResp As String
    
        Function Login(ByVal Sstream As SslStream, ByVal Server_Command As String)
        ImapClient = New TcpClient(ServerNm, _IntPort)
        NetworkS_stream = ImapClient.GetStream 'Read the stream
        Sstream = New SslStream(NetworkS_stream)
        Dim Read_Stream2 = New StreamReader(Sstream)
        Server_Command = Server_Command ' + vbCrLf
        m_buffer = System.Text.Encoding.ASCII.GetBytes(Server_Command.ToCharArray())
        Sstream.Write(m_buffer, 0, m_buffer.Length)
        Dim Server_Reponse As String
        Server_Reponse = Read_Stream2.ReadLine()
        Return Server_Reponse
    
    End Function
    

When i use this Login function with a [button] like :

        ListBox1.Items.Clear()
        StatResp = Login(m_sslStream, "LOGIN " + UsrNm + " " + PassStr + " ") & vbCrLf
        ListBox1.Items.Add(StatResp)

I get nothing in the [ListBox] control.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:30:17+00:00Added an answer on June 10, 2026 at 9:30 am

    Every IMAP command needs to have a “Tag” prefixed in front of it, which is a random alphanumeric string you need to generate. Typically a login process looks like this:

    A001 LOGIN user password
    A002 SELECT INBOX
    A003 ...
    ...
    A010 LOGOUT
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.