Yes you can! To query mail informations from a mail server you have to make use of
POP3
or
IMAP
protocols (depending on what the server is supporting).
The protocols are described in
RFC 1939 (
POP3
)
[
^]
and RFC 3501 (
IMAP
)
[
^]
You can write it completely on your own using the .NET libraries
System.Net.Sockets
and
System.Net.Security
or use any of the ready to use components (there are also free components available).