pop3

Network:POP3和SMTP

混江龙づ霸主 提交于 2019-12-06 02:24:55
简单来说: SMTP是用来寄信的:端口25 POP3是用来收信的:端口110 1.SMTP Simple Mail Transfer Protocal,简单邮件传输协议。 SMTP的一个重要特点是它能够在传送中接力传送邮件,即邮件可以通过不同网络上的主机接力式传送。工作在两种情况下:一是电子邮件从客户机传输到服务器;二是从某一个服务器传输到另一个服务器。 SMTP是个请求/响应协议,它监听25号端口,用于接收用户的邮件请求,并与远端邮件服务器建立SMTP连接。 SMTP工作机制 SMTP通常有两种工作模式:发送SMTP和接收SMTP。具体工作方式为:发送SMTP在接到用户的邮件请求后,判断此邮件是否为本地邮件: 是——>直接投送到用户的邮箱; 否——>向DNS查询远端邮件服务器的MX纪录,并建立与远端接收SMTP之间的一个双向传送通道,此后SMTP命令由发送SMTP发出,由接收SMTP接收,而应答则反方面传送。一旦传送通道建立,SMTP发送者发送MAIL命令指明邮件发送者。如果SMTP接收者可以接收邮件则返回OK应答。SMTP发送者再发出RCPT命令确认邮件是否接收到。如果SMTP接收者接收,则返回OK应答;如果不能接收到,则发出拒绝接收应答(但不中止整个邮件操作),双方将如此重复多次。当接收者收到全部邮件后会接收到特别的序列,如果接收者成功处理了邮件,则返回OK应答。 2

Connecting to POP3 with gmail fails

依然范特西╮ 提交于 2019-12-06 01:45:53
when I connect to a POP3 account using Gmail, It shows POP3 Access Fails for that label Here I attach a screenshot of the problem. Error: Server is temporarily unavailable. Server returned error "Error in RETR command: no such message" I suggest you to try with a different email client, I had similar problem with gmail, but i was able to solved that using sparrow in mac. That´s Yahoo making our lives a little harder. I was able to use during a few months now the Yahoo account from Gmail. But today I started seeing that same error. There´s nothing you can do about it. Yahoo is blocking the Mail

Is the UID provided by MS Exchange POP3 UIDL command truly unique?

≡放荡痞女 提交于 2019-12-05 08:19:50
I'm using Net::POP3 in Perl to iterate through a mailbox on an MS Exchange server. I run the UIDL command on each message number and compare the ID returned to previously-seen IDs to see if I've dealt with this message in the past. However, I'm also finding that within an individual POP3 mailbox, the same UID seems to come up multiple times for different messages. Any idea why this might be happening? Is the UID not truly unique? Or are the messages somehow being duplicated within the same mailbox? The RFC says: While it is generally preferable for server implementations to store arbitrarily

Setting a time-out limit to readLine()?

拥有回忆 提交于 2019-12-05 08:06:54
I have the following code that reads response from a POP server through Sockets in Java. But the problem is sometimes, when I use the readLine() function to read from the server and if the server does not reply with any response, my application will hang there, waiting for a response from the server. socket.connect(new InetSocketAddress("pop.server.com", 110), 3000); input = socket.getInputStream(); BufferedReader incoming = new BufferedReader(new InputStreamReader(input)); incoming.readLine(); //This line will cause my application to hang if the server does not respond with a reply Is there a

Retrieving AlternateView's of email

放肆的年华 提交于 2019-12-05 06:41:37
I can't seem to retrieve the AlternateView from System.Net.Mail.AlternateView. I have an application that is pulling email via POP3. I understand how to create an alternate view for sending, but how does one select the alternate view when looking at the email. I've have the received email as a System.Net.MailMessage object so I can easily pull out the body, encoding, subject line, etc. I can see the AlternateViews, that is, I can see that the count is 2 but want to extract something other than the HTML that is currently returned when I request the body. Hope this makes some amount of sense and

Save email attachment (python3, pop3_ssl, gmail)

一曲冷凌霜 提交于 2019-12-05 05:56:05
问题 I'm trying to save email attachment from Google mail account. AFAIK, it can be done 'walking' the message and getting its payload, for part in message.walk(): # getting payload, saving attach etc. but it does not work. See the whole example below: def test_save_attach(self): self.connection = poplib.POP3_SSL('pop.gmail.com', 995) self.connection.set_debuglevel(1) self.connection.user(USERNAME) self.connection.pass_(PASS) emails, total_bytes = self.connection.stat() print("{0} emails in the

常用邮箱SMTP服务器地址大全

限于喜欢 提交于 2019-12-05 04:48:20
常用邮箱SMTP服务器地址大全 阿里云邮箱(mail.aliyun.com) POP3服务器地址:pop3.aliyun.com(SSL加密端口:995;非加密端口:110) SMTP服务器地址:smtp.aliyun.com(SSL加密端口:465;非加密端口:25) IMAP服务器地址:imap.aliyun.com(SSL加密端口:993;非加密端口:143) 谷歌邮箱(google.com) POP3服务器地址:pop.gmail.com(SSL启用端口:995) SMTP服务器地址:smtp.gmail.com(SSL启用端口:587) 新浪邮箱(sina.com) POP3服务器地址:pop3.sina.com.cn(端口:110) SMTP服务器地址:smtp.sina.com.cn(端口:25) Tom邮箱(top.com) POP3服务器地址:pop.tom.com(端口:110) SMTP服务器地址:smtp.tom.com(端口:25) 网易邮箱(163.com) POP3服务器地址:pop.163.com(端口:110) SMTP服务器地址:smtp.163.com(端口:25) 126邮箱 POP3服务器地址:pop.live.com(端口:995) SMTP服务器地址:smtp.126.com(端口:25) 雅虎邮箱(yahoo.com)

Programmatically use Gmail to receive e-mail?

牧云@^-^@ 提交于 2019-12-05 01:38:08
问题 I'd like to use a C# program to poll a gmail account and automatically download new messages. I know you can use gmail as an outbound SMTP server, but is there any way to access new messages sent to the account? EDIT: Thanks for the rapid feedback....so I have two options, POP or IMAP. Which one should I use? And why? EDIT #2: Looks like IMAP allows me to not have to poll. Looks like the way to go. 回答1: Use Gmail with IMAP. 回答2: You can configure GMail to let you get at your mail with a POP3

How to grab attachment programmatically (C#) from a POP3 mail?

别说谁变了你拦得住时间么 提交于 2019-12-04 09:52:39
Is there any C# API for this task? Any suggestions? I've used /n Software in the past with success. Not free, but hey, you get to blame someone else if it doesn't work! (in other words, you get tech support from the company) They have a free trial as well. 来源: https://stackoverflow.com/questions/808871/how-to-grab-attachment-programmatically-c-from-a-pop3-mail

Reading emails from gmail POP3 account using libCurl

≯℡__Kan透↙ 提交于 2019-12-04 07:59:44
问题 I'm currently working in a C++ project which has to be able to read emails from an gmail POP3 account just like the title says. Also is important to say that I need to download the attachments (is encode base64?) of the mail and its body. The fact is that everyone recommend to use libCurl for this task, but the code sample on their web is not working. I saw this example on Libcurl website: #include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode res; curl = curl_easy