pop3

PHP Displaying unread mail count

心不动则不痛 提交于 2019-12-17 16:02:15
问题 I am using php imap class. In my box I have a lot of mail, but with this script I would retrieve only the unreaded mail. How can I do it? if ($mbox=imap_open( "{" . $mailserver . ":" . $port . "}INBOX", $user, $pass )) { echo "Connected\n"; } else { exit ("Can't connect: " . imap_last_error() ."\n"); echo "FAIL!\n"; }; if ($hdr = imap_check($mbox)) { $msgCount = $hdr->Nmsgs; echo "Ci sono ".$msgCount." mail"; } else { echo "Failed to get mail"; } If I do $overview=imap_fetch_overview($mbox,"1

Retrieving all unread emails using javamail with POP3 protocol

眉间皱痕 提交于 2019-12-17 15:37:12
问题 I am trying to access my gmail account and retrieve the information of all unread emails from that. I have written my code after referring many links. I am giving a few links for reference. Send & Receive emails through a GMail account using Java Java Code to Receive Mail using JavaMailAPI To test my code, I created one Gmail account. So I received 4 messages in that from Gmail. I run my application after checking number of mails. That showed correct result. 4 unread mails. All the infomation

How can receive emails in Java based system preferably with spring?

别说谁变了你拦得住时间么 提交于 2019-12-14 03:41:51
问题 I have looked up Google and Spring documentation but can not find any thing on receiving emails. I need to build a client (kind of not fully blown client) that can receive emails from POP3 and IMAP. I am already using Spring in the project so preference is Spring. Lots of links point to James but while it does look like a good project does not provide enough documentation and I am not even sure it does what I am after i.e just a small client that is able to to receive emails. 回答1: Spring

Receive emails from multiple accounts using mailman gem in rails

对着背影说爱祢 提交于 2019-12-13 16:47:33
问题 Is there a way to receive email from multiple accounts in mailman gem? Here is my mailman_server.rb which processes mail from a single account require "rubygems" require "mailman" Mailman.config.pop3 = { server: 'pop.gmail.com', port: 995, ssl: true, username: "email@gmail.com", password: "password" } Mailman::Application.run do default do puts message.subject end end I want to receive mails from both email1@gmail.com and email2@gmail.com which I can then process. Is there a way I can open

Reading a POP3 server with only TcpClient and StreamWriter/StreamReader

回眸只為那壹抹淺笑 提交于 2019-12-13 16:07:00
问题 I'm trying to read mails from my live.com account, via the POP3 protocol. I've found the the server is pop3.live.com and the port if 995. I'm not planning on using a pre-made library, I'm using NetworkStream and StreamReader/StreamWriter for the job. I need to figure this out. So, any of the answers given here: Reading Email using Pop3 in C# are not usefull. It's part of a larger program, but I made a small test to see if it works. Eitherway, i'm not getting anything. Here's the code I'm

CF.NET SMTP/POP3 clients

徘徊边缘 提交于 2019-12-13 06:41:52
问题 I'm working on an order entry application targeted to windows mobile devices. I need to be able to send and receive emails from within the application, but without using pocket outlook (this is a customer requirement). I see that the .net mail classes are not available for the compact framework. So I need to look elsewhere. I found 2 interesting libraries: CSLMail and MooseWorks' Email Controls. But none is able to deal with SSL connections, and this is a mandatory requirement I've found a

How to read UTF-8 mail attachments from pop3

旧巷老猫 提交于 2019-12-13 04:47:30
问题 E-mail contains XML file attachment in UTF-8 encoding. I'm looking for a way to read this attahcmed from ASP.NET/Mono MVC4 application. I tried to use openpop as described in How to save email attachment using OpenPop using code using (OpenPop.Pop3.Pop3Client client = new Pop3Client()) { client.Connect("mail.company.com", 110, false); client.Authenticate("user", "pass", AuthenticationMethod.UsernameAndPassword); if (client.Connected) { int messageCount = client.GetMessageCount(); List<Message

POP3 not fetch newest emails on GMail

柔情痞子 提交于 2019-12-13 01:19:21
问题 I use mailkit pop3 to fetch emails, but I find it didn't fetch newest emails and each time I run it return different messages count number using (Pop3Client client = new Pop3Client()) { // Connect to the server client.Connect(hostname, port, useSsl); client.AuthenticationMechanisms.Remove("XOAUTH2"); client.Authenticate((username), password); int messageCount = client.Count; // var folder = client.; // We want to download all messages List<MimeMessage> allMessages = new List<MimeMessage>

Why should I convince developers to use port 587 for all SMTP communication?

别等时光非礼了梦想. 提交于 2019-12-12 08:33:52
问题 There is a growing trend to use port 587 for all client to MTA communications. It's in a standards track RFC: http://www.ietf.org/rfc/rfc2476.txt My question is "Why?". Why have 2 instances of a SMTP server running on the same server, if they both do the same thing? What security feature does it provide, besides giving me 2 things to troubleshoot as an administrator. This just seems like unnecessary complication that isn't needed unless the ISP blocks port 25. Even then, if the ISP is

Get available space on Gmail account via API python

梦想与她 提交于 2019-12-12 03:44:04
问题 Is there a way(Api or anything..pop/imap in python) via which you can get to know the available space on your Gmail account? 回答1: It appears GMail supports the Quota Extension for IMAP, and at least some information is available that way. On my account, I get this information: > a001 GETQUOTA "" < * QUOTA "" (STORAGE 72600 10601545) The units are in kilobytes. This means I'm using 72 megs, of a total of 10 gigabytes, which appears to match approximately what gmail.com is saying is the current