-1

I can send mail using SmtpClient class, but are there any classes that allow reading mails? I tried to find something out, but it wasn't sucsessfull.

Alan Birtles
  • 32,622
  • 4
  • 31
  • 60
k1nd
  • 5
  • 1
  • C++/CLI is not C++, much as JavaScript is not Java. Should not have the `c++` tag, and it already has the correct `c++-cli` tag. – Eljay Jun 18 '21 at 13:39
  • What do you mean by "reading mails"? An SMTP server? A POP3/IMAP client? Something that can display downloaded email messages on a screen? – Alan Birtles Jun 18 '21 at 14:06
  • 2
    No such class in the framework. Even SmtpClient is no longer recommended by Microsoft, they suggest MailKit instead. Which also supports reading mail. – Hans Passant Jun 19 '21 at 17:57

1 Answers1

-2

Maybe others can correct me but SmtpClient class is C# and not C++ right?

I don't know how up-to-date it is but here is EmailArchitect's tutorial for "Retrieve Email and Parse Email in C++/CLI/CLR. It looks like it uses EmailArchitect's binary so it's unfortunate but it could be a paid route.

Another way could be researching the libcurl/curl/cURL route which supports multiple protocols and have many examples online (though I haven't checked them out myself).

Viet Than
  • 164
  • 1
  • 10