LoginSignup
0
0

More than 1 year has passed since last update.

Javaでメール受信

Last updated at Posted at 2022-04-01

概要

Apache Jamesを使うサンプル。Jamesはかなり高機能なようですが、今回はメール受信して独自に処理する必要があったので、受信してログ出すだけの最小サンプル。

Apache James

Javaで実装されているメールサーバ。SMTPやIMAPなどに対応しているようです。「Mailet」を実装することでメールの独自処理を行うことができます。

実装

javaコマンドの引数に-Dworking.directory=(confディレクトリを置いたディレクトリへのパス)を指定して実行してください。

https://github.com/YasunoriHigashiyama/custom-james-assembly-sample

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0