Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I need to search email's on mailbox sever with the given criteria. My criteria will be based on email-id,email-subject and some body keywords.

Can I do this using .net. Please share your ideas.

Regards,
YRishi

What I have tried:

checked on google but didn't get any related answer.
Posted
Updated 9-Jun-17 23:33pm
Comments
Richard MacCutchan 9-Jun-17 4:33am    
It depends on the server and whether it provides an interface that allows you to search messages.
yrishi 9-Jun-17 4:55am    
Thanks Richard for your response. I will check with the server details.

1 solution

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).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900