Answer the question
In order to leave comments, you need to log in
What standard means can be used to receive mail in C#?
Mail client based on MS Visual Studio NET C#
Answer the question
In order to leave comments, you need to log in
There is a System.Net.Mail.SmtpClient for sending emails, but there is no such one for receiving. Use OpenPop.NET .
var client = new POPClient();
client.Connect("pop.gmail.com", 995, true);
client.Authenticate("[email protected]com", "YourPasswordHere");
var count = client.GetMessageCount();
Message message = client.GetMessage(count);
Console.WriteLine(message.Headers.Subject);
@aush how to extract message text? Is it encrypted? Is there a key somewhere?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question