Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the easiest way for a Java application to receive incoming email?

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.

like image 471
flybywire Avatar asked Feb 18 '09 13:02

flybywire


People also ask

How do you write a program to implement send and receive the e mails?

Create a new session object by calling getDefaultInstance() method and passing properties as argument to get all of the important properties like hostname of the SMTP server etc. Create a MimeMessage object by passing the session object created in previous step. The final step is to send email using the javax. mail.


1 Answers

SubEthaSMTP Mail Server allows you to create your own SMTP Server for receiving emails.

like image 82
Peter Štibraný Avatar answered Oct 11 '22 14:10

Peter Štibraný