By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,965 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,965 IT Pros & Developers. It's quick & easy.

Get e-mails from POP3

P: n/a
Is there a way to get e-mails with attachments using .NET 2.0?
If not does anybody knows a component that can do this?
Thank you,
Shimon.
Dec 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
..NET features a rich set of socket functionality. The POP3 specification
is well defined by RFC 1939 (http://www.ietf.org/rfc/rfc1939.txt) When you
combine these two things together, it isn't hard to build the functionality
you are talking about.

There are plenty of examples out there (google .NET POP3 client) :
http://www.codeproject.com/csharp/despop3client.asp

I did write a basic POP3 checker (checks if you have any new mail), meant to
be exposed via a webservice for a gadget (ala live.com or longhorn). You
can download the source here: http://openmymind.net/Pop3Notifier.zip

There's a class in there called Pop3Client.cs it doesn't have the
functionality you need (right now it simply supports login and getting a
STAT), but you could build on it so it supports more POP3 functionality.

Karl
--

MY ASP.Net tutorials
http://www.openmymind.net/

"Shimon Sim" <sh**********@community.nospam> wrote in message
news:OY**************@TK2MSFTNGP09.phx.gbl...
Is there a way to get e-mails with attachments using .NET 2.0?
If not does anybody knows a component that can do this?
Thank you,
Shimon.

Dec 13 '05 #2

P: n/a
Thanks for Karl's informative inputs.

Hi Shimon,

So far .NET framework dosn't include build-in pop3 class library, however
as Karl has mentioned, it won't be too complex to build our own Pop3 reader
through the existing network tcp/ip components in .net BCL. Also, there
does exists many 3rd party Pop3 components or sample code over net:
http://www.ostrosoft.com/pop3_component/pop3_vbnet.asp

http://www.jscape.com/articles/retri...l_pop3_vb.html

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net>
| References: <OY**************@TK2MSFTNGP09.phx.gbl>
| Subject: Re: Get e-mails from POP3
| Date: Mon, 12 Dec 2005 19:50:14 -0500
| Lines: 33
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| Message-ID: <OK**************@TK2MSFTNGP15.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host:
cpe00a0d1b5351c-cm0012c90ddc92.cpe.net.cable.rogers.com 70.29.234.119
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:364412
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| .NET features a rich set of socket functionality. The POP3
specification
| is well defined by RFC 1939 (http://www.ietf.org/rfc/rfc1939.txt) When
you
| combine these two things together, it isn't hard to build the
functionality
| you are talking about.
|
| There are plenty of examples out there (google .NET POP3 client) :
| http://www.codeproject.com/csharp/despop3client.asp
|
| I did write a basic POP3 checker (checks if you have any new mail), meant
to
| be exposed via a webservice for a gadget (ala live.com or longhorn). You
| can download the source here: http://openmymind.net/Pop3Notifier.zip
|
| There's a class in there called Pop3Client.cs it doesn't have the
| functionality you need (right now it simply supports login and getting a
| STAT), but you could build on it so it supports more POP3 functionality.
|
| Karl
| --
|
| MY ASP.Net tutorials
| http://www.openmymind.net/
|
|
|
| "Shimon Sim" <sh**********@community.nospam> wrote in message
| news:OY**************@TK2MSFTNGP09.phx.gbl...
| > Is there a way to get e-mails with attachments using .NET 2.0?
| > If not does anybody knows a component that can do this?
| > Thank you,
| > Shimon.
| >
|
|
|

Dec 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.