pop3

Get email using PowerShell

我的未来我决定 提交于 2019-11-28 01:53:26
问题 All I need is get email in PoSh script and see at its topic - with pop3 or imap, doesnt matter. I tried to find solution, but all I found is either 3rd party .net assebmlies, or MS Exchange direct work. Both are not appropriate. How to use SMTP and send email - its absolutely clear, but how to receive? Isn't there any standard assemblies similar to System.Net.Mail? 回答1: Here is a code I have been using on c#. I have Imported the dll to powershell and used it to retrieve different parts of a

How to retrieve only new emails using POP3 protocol

≡放荡痞女 提交于 2019-11-28 01:05:33
问题 I am using POP3 protocol to retrieve my emails in my .NET application. I need to read just new emails only but found in many blogs that it is not possible to retrieve just "unseen" or "new" mails using POP3. Is that true? If so, could you please help me understand how Outlook Express manages to get new mails using POP3? Is there any way that I can flag the seen mails in the email server itself? Or please help me find out a way to retrieve new mails using POP3 protocol. 回答1: You have to store

PHP Displaying unread mail count

有些话、适合烂在心里 提交于 2019-11-27 20:57:36
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:$msgCount",0); the script load to an infinity time. The imap_search UNSEEN solution is not good

Fetching mail from a POP3 server using php

萝らか妹 提交于 2019-11-27 07:13:47
I am trying to fetch a mail from POP3 (I am using POP3 mail server and I am trying to fetch the mail content and store into a database table for my project.), but I can't find any PHP script for that, all are only for IMAP. Do you know how to fetch mail from a POP3 server? Thanks. Somewhat surprisingly, PHP's imap library can be also used for working with POP3 mailboxes. Most of the advanced IMAP features won't work, of course (e.g. folders or fetching message parts), but the basic POP3 functionality is implemented. The main difference is the option string that you're passing to imap_open - to

retrieve email using PHP and pop3 - what is your technique?

徘徊边缘 提交于 2019-11-27 06:30:33
问题 I can see some options available: 1) Use PEAR's POP3 class --> tried it, having some weird weird issues like FF choking to death on their sample code!!! 2) Use PHPClasses (here) --> seems to be the viable option at the time, still working on it 3) Write my own or use one of the snippets available The target is currently Gmail, but I would like this to work on my ISP mail too (not necessarily same code of course). What do you use? Pointers to working snippets would be much appreciated. 回答1: I

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

Deadly 提交于 2019-11-27 04:21:33
This question already has an answer here: “The remote certificate is invalid according to the validation procedure.” using Gmail SMTP server 19 answers 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 message, AsyncProtocolRequest asyncRequest, Exception exception) at System.Net.Security.SslState

What non-standard behaviour features does Gmail exhibit, when it is programmatically used as a POP3 server?

最后都变了- 提交于 2019-11-27 01:38:25
I am trying to prepare a complete list of behaviour that Gmail POP3 exhibits, that you wouldn’t expect to generally find in a POP3 server. For example, Gmail appears to ignore the DELE (delete) command from a POP3 client. Instead, it implements its own delete and archive strategy. The purpose of preparing a list is to avoid developers testing a POP3 client against the Gmail POP3 server and then assuming that all POP3 servers behave in the same way. Can anyone provide a more complete list of non-standard behaviour? I cannot come with a complete list, but I can come with what I know of: Fetching

Python - How can I fetch emails via POP or IMAP through a proxy?

房东的猫 提交于 2019-11-27 01:29:42
问题 Neither poplib or imaplib seem to offer proxy support and I couldn't find much info about it despite my google-fu attempts. I'm using python to fetch emails from various imap/pop enabled servers and need to be able to do it through proxies. Ideally, I'd like to be able to do it in python directly but using a wrapper (external program/script, OSX based) to force all traffic to go through the proxy might be enough if I can't find anything better. Could anyone give me a hand? I can't imagine I'm

Recommendations for a .NET component to access an email inbox [closed]

人走茶凉 提交于 2019-11-27 00:40:34
I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table. My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces countless (ok, 146,000) results. Has anybody done anything similar before and can you recommend a decent component that won't break the bank (a few hundred dollars maximum)? Would there be any benefits to using IMAP rather than POP3? I recomment chilkat . They have pretty stable components, and you can get their email component for as cheap as

Integrating POP3 client functionality into a C# application?

拟墨画扇 提交于 2019-11-26 23:53:56
问题 I have a web application that requires a server based component to periodically access POP3 email boxes and retrieve emails. The service then needs to process the emails which will involve: Validating the email against some business rules (does it contain a valid reference in the subject line, which user sent the mail, etc.) Analysing and saving any attachments to disk Take the email body and attachment details and create a new item in the database Or update an existing item where the