Home | Contact Us | Download | Support | Purchase | Shopping Cart | Products


Product List
  "MY BEST SHOPPING EXPERIENCE ON THE INTERNET. ListNanny did not support our mailing program, but dave suggested we send him some file samples and three days later we got a new version supporting our mailing program. Dave let us use the program, and only after he was satisfied that we have a working solution we paid for the standard product $129 - nothing for the special development. I wish all software vendors were so supporting of their customers."
D. Geisler
Broadway Box
 
More
Testimonials
aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetEmail
Runner Up ASP.NET Email Control
Voted Runner Up Email Control


aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetTraceRoute
Voted Runner Up Networking Control
Runner Up - Networking Control

Download a Message as Text

The following example downloads a POP3 message as text.

[C#]

            POP3 pop = new POP3( "127.0.0.1", "dave@blah.com", "mypassword");
           
            //if we have write permissions we can log the session
            pop.LogPath = "c:\\aspNetPOP3.log";
            pop.LogOverwrite = true;
           
            //if we don't have write permissions (as in an ASP.NET application, we can maintain the log in memory)
            pop.LogInMemory = true;
           
            //connect to the POP3 server
            pop.Connect();
           
            //get the number of messages and the size of the inbox
            pop.PopulateInboxStats();
           
            Console.WriteLine( "There are {0} messages waiting.", pop.InboxMessageCount );
            Console.WriteLine( "The total inbox size is {0} bytes.", pop.InboxSize );
           
            //get the first message
            string text = pop.GetMessageAsText( 1 );
           
            //show the message
            Console.WriteLine( text );
           
            //Close the POP3 Connection
            pop.Disconnect();
           
            //display the log
            Console.WriteLine( "Log----");
            Console.WriteLine( pop.Log );
 


 

[VB.NET]

             Dim pop As New POP3("127.0.0.1", "dave@blah.com", "mypassword")
            
             'if we have write permissions we can log the session
             pop.LogPath = "c:\aspNetPOP3.log"
             pop.LogOverwrite = True
            
             'if we don't have write permissions (as in an ASP.NET application, we can maintain the log in memory)
             pop.LogInMemory = True
            
             'connect to the POP3 server
             pop.Connect()
            
             'get the number of messages and the size of the inbox
             pop.PopulateInboxStats()
            
             Console.WriteLine("There are {0} messages waiting.", pop.InboxMessageCount)
             Console.WriteLine("The total inbox size is {0} bytes.", pop.InboxSize)
            
             'get the first message
             Dim emailText As String = pop.GetMessageAsText(1)
            
             'show the message
             Console.WriteLine(emailText)
            
              'Close the POP3 Connection
              pop.Disconnect()

 

 



The box is not shipped. aspNetPOP3 is a downloadable product.