pop3

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

早过忘川 提交于 2019-12-04 07:29:21
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. Spring integration was designed to solve these kind of problems. In particular it has e-mail receiving adapters . Here

How to retrieve just unread emails using pop3?

余生颓废 提交于 2019-12-04 05:42:41
I'm using open source component to retrieve emails from my mail server using vb.net (pop3) but because i have a lot of messages it gives me response Time out and i think if i just got the new messages it will make reading faster. this is my code: Dim popp As New Pop3Client("user@mail.com", "*******", "pop3.mail.com") popp.AuthenticateMode = Pop3AuthenticateMode.Pop popp.Port = 110 'popp.Ssl = True popp.Authenticate() Dim msglist As New List(Of String) If popp.State = Pop3ConnectionState.Authenticated Then Dim totalmsgs As Integer = popp.GetTotalMessageCount() If totalmsgs > 0 Then For index As

Pop3 to SMTP message custom forwarder in C#

[亡魂溺海] 提交于 2019-12-03 19:40:37
问题 I'd like to write a service that periodically checks a POP3 account for new messages and based on custom business logic forwards the messages to an appropriate "To", and possibly changes the "From" as well. I might need to keep some messages on the server until certain conditions are ready for them to be forwarded. I found a sample using Chilkat .NET components that might work: http://www.example-code.com/csharp/pop3_forwarder.asp My question is: Are there any other examples of this in the

retrieve email using c#?

你。 提交于 2019-12-03 19:23:02
问题 I want to retrieve emails from my Go Daddy account using C#. I tested OpenPop.NET to do that like so: OpenPop.Pop3.Pop3Client PopClient = new OpenPop.Pop3.Pop3Client(); PopClient.Connect("pop.secureserver.net", 995, true); PopClient.Authenticate("username", "pass"); My problem is that the server does not accept the user credentials. I'm sure the credentials are OK. I have tried the same code with my Gmail account and every thing goes OK. Is something missing that Go Daddy wants me to set? Is

Programmatically use Gmail to receive e-mail?

风格不统一 提交于 2019-12-03 16:58:03
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. Use Gmail with IMAP . You can configure GMail to let you get at your mail with a POP3 client . Kibbee You can get an Atom Feed of your GMAIL , which can be fetched with a regular web request, and

Python: Retrieving only POP3 message text, no headers

好久不见. 提交于 2019-12-03 14:34:58
I'm trying to make a Python program that retrieves only the body text of an email without passing headers or any other parameters. I'm not sure how to go about this. The goal is to be able to send basic commands to a program via message text. What I have now is this: import poplib host = "pop.gmail.com" mail = poplib.POP3_SSL(host) print mail.getwelcome() print mail.user("user") print mail.pass_("pass") print mail.stat() print mail.list() print "" if mail.stat()[1] > 0: print "You have new mail." else: print "No new mail." print "" numMessages = len(mail.list()[1]) for i in range(numMessages):

django to send AND receive email?

让人想犯罪 __ 提交于 2019-12-03 02:01:37
问题 I have gotten quite familiar with django's email sending abilities, but I havn't seen anything about it receiving and processing emails from users. Is this functionality available? A few google searches have not turned up very promising results. Though I did find this: Receive and send emails in python Am I going to have to roll my own? if so, I'll be posting that app faster than you can say... whatever you say. thanks, Jim update : I'm not trying to make an email server, I just need to add

JavaMail error + Unrecognized SSL message, plaintext connection?

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Using below code to read mails from a Zimbra mail server. String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory"; Properties pop3Props = new Properties(); pop3Props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY); pop3Props.setProperty("mail.pop3.socketFactory.fallback", "false"); pop3Props.setProperty("mail.pop3.auth", "true"); pop3Props.setProperty("mail.pop3.port", "110"); pop3Props.setProperty("mail.pop3.socketFactory.port", "110"); URLName url = new URLName("pop3", host, 110, "",username, password); Session session = Session

Fetching email using Ruby on Rails

戏子无情 提交于 2019-12-03 00:33:48
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/ruby/1.8/net/pop.rb:438:in `do_start' from /usr/lib/ruby/1.8/net/pop.rb:432:in `start' from script/mail.rb