This is a discussion on Retrieve mails from server within the C# Programming forums, part of the Software Development category; I want to retrieve the email in my mail server using C#. That was like common method for all servers.......
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I want to retrieve the email in my mail server using C#. That was like common method for all servers.... |
|
#2
| |||
| |||
| this one is used to commect ur pop mail server public void Connect(string server, string username, string password) { string message; string response; Connect(server, 110); response = Response(); if (response.Substring(0, 3) != "+OK") { throw new Pop3Exception(response); } message = "USER " + username + "\r\n"; Write(message); response = Response(); if (response.Substring(0, 3) != "+OK") { throw new Pop3Exception(response); } message = "PASS " + password + "\r\n"; Write(message); response = Response(); if (response.Substring(0, 3) != "+OK") { throw new Pop3Exception(response); } }
__________________ The MOSS Master of Solution Service |
|
#3
| |||
| |||
| i think it is depending on Pop3Exception response ...like that .......can u provide full source code for the POP |
|
#4
| |||
| |||
| yeah.......i will attach the code here POPMail.zip
__________________ The MOSS Master of Solution Service |
|
#5
| |||
| |||
| can u explain the pop mail server for yahoo,google,...and ports that are used in connect method
__________________ The MOSS Master of Solution Service |
|
#6
| |||
| |||
| Yahoo Incoming Mail Server (POP3) - pop.mail.yahoo.com (port 110) Yahoo Outgoing Mail Server (SMTP) - smtp.mail.yahoo.com (port 25) Google Gmail Incoming Mail Server (POP3) - pop.gmail.com (SSL enabled, port 995) Outgoing Mail Server - use the SMTP mail server address provided by your local ISP or smtp.gmail.com (SSL enabled, port 465) You can use that |
|
#7
| |||
| |||
| ok...great..i wil check and let u know....
__________________ The MOSS Master of Solution Service |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Retrieve only the Nth row from a table? | santhakumar | Database Support | 6 | 11-14-2008 04:12 AM |
| How to Retrieve a Cookie Value? | sundarraja | PHP Programming | 4 | 04-02-2008 06:00 AM |
| Stop Junk Mails | srikumar_l | Networking & Internet Connectivity | 2 | 12-22-2007 01:13 PM |
| How to Store and Retrieve the values in server side caches in ASP.NET? | oxygen | ASP and ASP.NET Programming | 1 | 07-23-2007 12:14 AM |
| simple windows service to generate automatic mails | kingmaker | C# Programming | 0 | 07-15-2007 11:04 PM |
Our Partners |