OTP GenServer that manages the GreenMail Java process.
Starts GreenMail standalone JAR as a port process. The Java process dies when the GenServer dies — no orphans.
Options
:smtp_port— SMTP port (default: 3025):imap_port— IMAP port (default: 3143):jar_path— Path to greenmail-standalone.jar (default: auto-detect from priv/):java_path— Path to java executable (default: auto-detect):startup_timeout— Max ms to wait for ports (default: 8000):supervisor— Supervisor name for stop/start (default: caller must set)
Summary
Functions
Returns a specification to start this module under a supervisor.
Restart: stop + start. Flushes all in-memory emails.
Start the mail server after a manual stop.
Stop the mail server. Kills the Java process and waits for ports to free.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Restart: stop + start. Flushes all in-memory emails.
Start the mail server after a manual stop.
Stop the mail server. Kills the Java process and waits for ports to free.