A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to use C# to read E-Mail ?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 8th 07, 08:02 AM posted to microsoft.public.outlook.program_forms
Lovely Stone
external usenet poster
 
Posts: 1
Default How to use C# to read E-Mail ?

I want to use class of TcpClient in C# to read email, the codes is as follows:
TcpClient client = new TcpClient(strHostName, nPort);
NetworkStream ns = client.GetStream();
StreamWriter sw = new StreamWriter(ns);
sw.WriteLine("USER myAccountName");
The last line of code execution prompt me : "-ERR Command is not valid in
this state." == what should I do before sw.WriteLine("USER myAccountName"); ?
(The pop3 server is exchange2007)
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i can't read my mail can you help me Outlook Express 4 August 7th 06 06:54 AM
Possible to require e-mail be read? Chase Outlook and VBA 1 March 27th 06 05:37 AM
Possible to require e-mail be read? Chase Outlook - Using Forms 0 March 26th 06 11:50 PM
Can't read my e-mail Ola Outlook - General Queries 4 February 9th 06 04:51 PM
can i read my e-mail here i will sign up Milly Staples [MVP - Outlook] Outlook - Using Contacts 0 January 8th 06 05:42 PM


All times are GMT +1. The time now is 11:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.