banner



How To Receive Email In A Java App

6 Answers 6

yegor256

96.5k 110 gold badges 421 silver badges 566 bronze badges

answered Feb 18 '09 at 13:36

1

  • Definitely a very clean and accessible product. I have some experience with it and I can say there are not many libraries which are so easily integrated.

    Feb 18 '09 at 13:41

 |

James is probably your best bet, but email handling is extremely complex, requiring not only configuration of your MTA (the James server), but also DNS. In the past, I've found it easier to initiate my handlers via hooks from non-Java MTA's like postfix. And procmail might also be useful to you. For a Java MTA though, James rocks.

answered Feb 18 '09 at 13:19

2

  • James is a very complex product. If you only need to receive e-mail, and don't need anything else, use SubEthaSMTP. If you don't have experience wirth James, use SubEthaSMTP and a real e-mail server (postfix) in front of it and let that handle the complex stuff.

    Feb 18 '09 at 13:39

  • James is very complex, and it has little subtleties one has to be aware of while configuring its (very, very verbose) xml file. If you need a mail server in java, James will work. If you need an application mail server, SubEtha+postfix will be much easier and sane.

    Feb 27 '09 at 18:01

 |

Apache Commons Net is the perfect library to fetch mails via POP3. IMAP is not supported.

answered Feb 18 '09 at 13:24

2

  • mmm...but then I have two constantly poll the server, right? Instead of being a server and sitting idle until email arrives...

    Feb 18 '09 at 13:30

  • Answer out of date perhaps? Supported protocols include: IMAP(S)

    May 20 '15 at 14:28

 |

answered Dec 20 '12 at 15:51

See if Sun's own JavaMail (API docs) suits your needs.

I'm not sure about easiest, but at least it is a widely used way.

answered Feb 18 '09 at 13:32

Check jGuru's JavaMail tutorial here. There are ways to read and detach attachments.

answered Feb 18 '09 at 14:47

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged java smtp email smtpd .

How To Receive Email In A Java App

Source: https://stackoverflow.com/questions/561011/what-is-the-easiest-way-for-a-java-application-to-receive-incoming-email

Posted by: millergooft1986.blogspot.com

0 Response to "How To Receive Email In A Java App"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel