Sending email is easy with commons-email, and with spring it is even easier. What about receiving incoming email? Are there easy to use APIs that allow to bounce emails, process attachments, etc.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Review the Mail component from apache camel
http://camel.apache.org/mail.html
Apache Commons Net is the perfect library to fetch mails via POP3. IMAP is not supported.
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.
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.
SubEthaSMTP Mail Server allows you to create your own SMTP Server for receiving emails.
Check jGuru's JavaMail tutorial here. There are ways to read and detach attachments.