Receiving email and downloading attachment through a C# Application

跟風遠走 提交于 2019-12-02 23:18:12
Krekkon
var client = new POPClient();
client.Connect("pop.gmail.com", 995, true);
client.Authenticate("admin@bendytree.com", "YourPasswordHere");
var count = client.GetMessageCount();
Message message = client.GetMessage(count);
Console.WriteLine(message.Headers.Subject);

A simple tip, that you can follow: http://www.joshwright.com/tips/sending-receiving-email-in-csharp

You can use POP3 or IMAP to check for email messages and then process the email message for saving the attached .ppt file. Click here for a sample.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!