pop3

The remote certificate is invalid according to the validation procedure [duplicate]

与世无争的帅哥 提交于 2020-01-09 02:13:47
问题 This question already has answers here : “The remote certificate is invalid according to the validation procedure.” using Gmail SMTP server (19 answers) Closed 2 years ago . Running the following code, I get an exception: using (var client = new Pop3Client()) { client.Connect(provider.ServerWithoutPort, provider.Port, true); } The Exception I get: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken

Did OpenPOP.net with GMail attachments break recently?

若如初见. 提交于 2020-01-06 06:36:24
问题 I could swear this code was working few days ago. I'm using the SSL binaries from http://trixy.justinkbeck.com/2009/07/c-pop3-library-with-ssl-for-gmail.html POPClient client = new POPClient("pop.gmail.com", 995, "user@gmail.com", "qwerty", AuthenticationMethod.USERPASS, true); int unread = client.GetMessageCount(); for (int i = 0; i < unread; i++) { Message m = client.GetMessage(i + 1, true); Console.WriteLine(m.Subject); if (m.HasAttachment) { Attachment a = m.GetAttachment(1); // Problem!

C# POP3 protocol solution

有些话、适合烂在心里 提交于 2020-01-05 15:17:04
问题 I need to read data from the server via the POP3 protocol, and then put them into the database. I work with .NET, win forms, C# language. What is the best way to do it? 回答1: There isn't any built in pop3 feature in .net, only smtp outgoing. There are several pop3 controls out there which you can purchase / download. There are tons of results in Google that solve this problem: http://tinyurl.com/35892z8 It depends if you are willing to spend money or want it free. 回答2: you can use OpenPop.NET

C# POP3 protocol solution

喜欢而已 提交于 2020-01-05 15:16:45
问题 I need to read data from the server via the POP3 protocol, and then put them into the database. I work with .NET, win forms, C# language. What is the best way to do it? 回答1: There isn't any built in pop3 feature in .net, only smtp outgoing. There are several pop3 controls out there which you can purchase / download. There are tons of results in Google that solve this problem: http://tinyurl.com/35892z8 It depends if you are willing to spend money or want it free. 回答2: you can use OpenPop.NET

get email attatchment for POP 3 received as winmail.dat

萝らか妹 提交于 2020-01-05 08:18:12
问题 When I try to get attatchment from POP 3 mail, I am getting them as winmail.dat, not the original attached file name. How can I get the original file name? for (int i = 0; i < multipart.getCount(); i++) { BodyPart bodyPart = multipart.getBodyPart(i); if(!Part.ATTACHMENT.equalsIgnoreCase(bodyPart.getDisposition())) { //do something } else { bodyPart.getFileName(); // here only get the winmail.dat } } 回答1: This is part of the Exchange Settings, and sadly you going to need to extract the

Configure Outlook Mail Settings Programmatically?

北战南征 提交于 2020-01-02 10:27:27
问题 Was wondering if there was a simple way to add and configure a POP3 server to Outlook's mail server settings programmatically? Searching Google seems to yield results that tell me I have to reverse-engineer the gobbledygook stored under HKCU\Software\Microsoft\Windows NT\Windows Messaging Subsystem\Profiles. My employer wanted to see if it was possible to quickly bang out a program to configure our users' POP3 settings (we're spread out around the country) and so far this is looking anything

python模块之poplib: 用pop3收取邮件

两盒软妹~` 提交于 2020-01-01 21:01:23
python的poplib模块是用来从pop3收取邮件的,也可以说它是处理邮件的第一步。 POP3协议并不复杂,它也是采用的一问一答式的方式,你向服务器发送一个命令,服务器必然会回复一个信息。pop3命令码如下:  命令 poplib方法    参数    状态     描述 ----------------------------------------------------------------------------------------------- USER  user   username  认可  用户名,此命令与下面的pass命令若成功,将导致状态转换 PASS  pass_   password  认可  用户密码    APOP  apop   Name,Digest 认可  Digest是MD5消息摘要 ----------------------------------------------------------------------------------------------- STAT  stat   None    处理  请求服务器发回关于邮箱的统计资料,如邮件总数和总字节数 UIDL  uidl   [Msg#]   处理  返回邮件的唯一标识符,POP3会话的每个标识符都将是唯一的 LIST  list   [Msg#]   处理

Does the POP3 protocol support a folder system?

≡放荡痞女 提交于 2020-01-01 19:13:53
问题 I am working on a email client written in C# and as part of this I wanted to be able to have a folder system for storing emails. Does the POP3 protocol support a folder system? If it does, which command is it? 回答1: No. A short look at the specifications would have shown you. SMTP does not deal with folders, and POP3 is just a protocol to get an SMTP buffer from a server. Folder management came way later and uses other protocols. 回答2: POP3 itself does not expose a folder system, but it was

Fetching email using Ruby on Rails

放肆的年华 提交于 2019-12-31 17:58:52
问题 I need to fetch email from my gmail account using RoR. require 'net/pop' Net::POP3.start('pop.gmail.com', 995, username, password) do |pop| if pop.mails.empty? puts 'No mail.' else #pop.each_mail do |mail| #p mail.header #p mail.pop puts "Mails present" #end end end I get a timeout error. usr/lib/ruby/1.8/timeout.rb:60:in `new': execution expired (Timeout::Error) from /usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open' from /usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open' from /usr/lib

Fetching email using Ruby on Rails

不问归期 提交于 2019-12-31 17:58:03
问题 I need to fetch email from my gmail account using RoR. require 'net/pop' Net::POP3.start('pop.gmail.com', 995, username, password) do |pop| if pop.mails.empty? puts 'No mail.' else #pop.each_mail do |mail| #p mail.header #p mail.pop puts "Mails present" #end end end I get a timeout error. usr/lib/ruby/1.8/timeout.rb:60:in `new': execution expired (Timeout::Error) from /usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open' from /usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open' from /usr/lib