V
V
vitalyaventel2014-05-20 09:39:04
Email
vitalyaventel, 2014-05-20 09:39:04

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

2 answer(s)
A
aush, 2014-05-20
@vitalyaventel

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);

Still it is possible to look at MailSystem.NET .

V
vitalyaventel, 2014-05-27
@vitalyaventel

@aush how to extract message text? Is it encrypted? Is there a key somewhere?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question