Sending mail from java

后端 未结 4 825
谎友^
谎友^ 2020-12-22 07:41

What is the easiest way to send and receive mails in java.

4条回答
  •  [愿得一人]
    2020-12-22 08:27

    JavaMail is the traditional answer for sending email (as everyone's pointing out).

    As you also want to receive mail, however, you should check out Apache James. It's a modular mail server and heavily configurable. It'll talk POP and IMAP, supports custom plugins and can be embedded in your application (if you so wish).

提交回复
热议问题