从c#读取gmail
有谁知道如何在 C# 中从 gmail 帐户读取电子邮件?我找了好几个小时,发现了一些选项,但似乎很久以前,谷歌改变协议就破坏了这些选项。我尝试过 POP3 和 IMAP,但似乎都不起作用。
由于某种原因,OpenSSL.NET 无法加载,出现此错误“无法加载文件或程序集 'ManagedOpenSsl,Version=0.4.3.0,Culture=neutral,PublicKeyToken=null' 或其依赖项之一。尝试了加载格式不正确的程序。”所以解决这个问题也可以解决我的麻烦
任何人都可以解决OpenSSL的问题吗(我认为它与放置libssl32.dll和ssleay32.dll的位置有关,我在/bin和程序存在的位置尝试过)或提供另一种从 GMail 读取电子邮件的解决方案吗?
Does anyone know a way to read email messages from a gmail account in C#? I've looked for hours and found a few options that all seemed to have been broken by Google's change in protocol however long ago. I've tried POP3 and IMAP and none seem to work.
For some reason OpenSSL.NET won't load, giving me this error "Could not load file or assembly 'ManagedOpenSsl, Version=0.4.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format." so solving that problem would also be a solution to my troubles
Can anyone solve the problem of OpenSSL (I assume it has to do with where to put libssl32.dll and ssleay32.dll, I tried in /bin and where the program exists) or provide another solution of reading emails from GMail?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 IMAP。请参阅:
使用 IMAP 计算 Gmail 中的电子邮件数量
Use IMAP. See:
Count number of emails in gmail using IMAP